Normalize Homepage and Documentation
HTML JavaScript CSS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
api
client
faq
guide
images
index
.gitignore
.nlzrc
LICENSE
README.md
api.html
faq.html
graph.png
guide.html
index.css
index.html
index.js
layout.jade
package.json
watch.js

README.md

nlz.io

This is the landing and documentation page for https://nlz.io as well as http://normalize.github.io (static version). Of course, this uses nlz to build the site.

Structure

The client-side JS and CSS are stored in the client/ folder with index.* entry points. The homepage is stored in home/ and the docs are stored in docs/.

index.* and .html files in the root directory are all built files. You can see how nlz(1) creates JS and CSS files by looking at index.js and index.css, respectively.

watch.js is a simple custom watcher for building our jade/markdown templates.

Installation and Setup

First, install nlz:

npm i -g nlz

To build the JS and CSS, run the following:

nlz build --watch

Notice how the entry points are defined within .nlzrc.

Then to build the pages, install the npm dependencies and run node watch.js.

npm i
node watch.js