Slate with node.js
A port of the documentation generator Slate to node.js.
See it in action!
The major difference is the use of marked for parsing the .md, highlight for syntax highlighting, and Handlebars for templating.
- Clone the repo, install the npm modules.
- Run
node marked.js
- This will build the page and save it to /source/index.html
- You're done!
- Replace /source/index.md with your own markdown to use that instead
- Package it in a more modular way (Grunt?)
- marked seems to be handling tables a bit differently, if there's too many em-dashes it's failing
- highlight.js might have some differences in language detection than Rouge; at the very least 'shell' becomes 'bash'. Ideally this repo should be compatible with any markdown made for Ruby Slate.
- Cleanup how marked parses the top-level settings. Right now they are manually being parsed.
- Actually build the scss/js
- Allow you to choose from highlight's different themes