markade
v1.0.1
Published
Yaml + Markdown + Pug Static Site Generator
Downloads
8
Maintainers
Readme
A static site generator using Pug, Markdown and YAML
Installation
npm install -g markade
Usage
markade -h
init [directory] Initialize a markade directory
compile [directory] Compiles a markade directory
watch [options] [directory] Watches for changes and sets up a dev server
Init
- (Optional) Make a new directory.
- To initialize, run
markade init <directory>
. This will create a markade.json file and copy over the sample templates and data. - You can edit the markade.json file as you wish, such as the paths for outut, template or data.
Compile
- (Optional) Move into your directory.
- To compile, run
markade compile <directory>
. This will look for markade.json you created earlier then look for data files in the data directory you specified and compare them against the templates in the following way: - A YAML variable
template: file.jade
specified. - Templates defined in your markade.json in a templates object.
"templates": {"file.jade": "file.md"}
- If none found, it defaults to a file with the same name in the template directory.
- Then it will write the file in the same relative path as your data file in your output directory in the following way:
- A YAML variable
output: file.xml
specified. - The same name and relative path as your data file:
data/about/index.md
->public/about/index.html
.
Watch and Server
- To watch for changes and run a server, run
markade watch <directory>
License
MIT © Ilias Ismanalijev