This is the source code for leveldb.org.
The Stylus files are located under assets/static/styl
, with the following architecture...
├── assets
└── styl
├── components
├── globals
├── pages
├── sections
└── main.styl
Where:
- compontents — are reusable components for common elements (such as buttons, forms, typography)
- globals — reusable variables, mixins and base for the website
- pages — subpages of the website (comments, profile, 404, landing, etc.)
- sections - individual sections of a page (header, footer, community, platforms, etc.)
├── assets
└── templates
├── index.jade
├── footer.jade
└── layout.jade
Where:
- layout.jade — basic layout file for the entire website
- index.jade — the page content (here being the landing page)
- footer.jade - footnotes
git clone https://github.com/Level/leveldb.org.git
cd leveldb.org
npm i
npm start
# hack on the codez, send pull request
npm run deploy
builds the static site, switches to the gh-pages branch and
puts the built site in the root, and then does git push origin gh-pages.
git fetch
git checkout master # if you're not already on it
git merge <fork-branch>
npm run deploy
svccfg import ./service.xml
svcadm enable leveldb-org