1.0.1 • Published 8 years ago
markade v1.0.1
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
1.0.1
8 years ago
0.4.2
8 years ago
0.4.1
10 years ago
0.4.0
10 years ago
0.3.1
10 years ago
0.3.0
10 years ago
0.2.0
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.9
10 years ago
0.0.8
10 years ago
0.0.7
10 years ago
0.0.6
10 years ago
0.0.5
10 years ago
0.0.4
10 years ago
0.0.3
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago