Static site generator inspired by jekyll
npm install outline-md
|13||downloads in the last month|
|Version||0.1.4 last updated 6 months ago|
|Dependencies||underscore, marked, jade, js-yaml|
An Outline Generated HTML page.
Table of Contents
Outline: A Markdown to HTML Static Site Generator
$ npm install -g outline-md
Run the following command in the folder containing your
This deletes all existing
.html files in the folder and compiles the
.md files into HTML using the default layout.
Document Metadata (Front Matter)
Jekyll posts, you can attach metadata to your documents using YAML. Here is a sample document
--- title: This is the title of my document. layout: base --- # Introduction Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Nulla vitae elit libero, a pharetra augue. # Body Curabitur blandit tempus porttitor. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. # Conclusion
Jekyll, outline searches for layouts in the
_layouts directory. If no layout is specified, the default layout is used.
// sample layout !!! html head body #toc!= toc #contents!= body
The jade template is given the
body variables parsed from the markdown. All other metadata from the document front matter is passed to the layout as well.
- Borrows heavily from Heckle source code.
The MIT License (MIT)
Copyright (c) 2013 Michael Yong
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.