UNPKG

1.19 kBMarkdownView Raw
1Loppo is an extremely easy static site generator of markdown documents. You get your site with only one command. Please visit [demo](http://redux.ruanyifeng.com/).
2
3## Features
4
5- easy config ([example](https://raw.githubusercontent.com/ruanyf/loppo/master/loppo.yml.default))
6- simple site structure ([example](https://raw.githubusercontent.com/ruanyf/redux-docs/master/chapters.yml))
7- friendly template syntax([example](https://raw.githubusercontent.com/ruanyf/redux-docs/master/themes/oceandeep/page.template))
8- built-in [utility commands](docs/sub-commands.md)
9
10## How to use
11
12**Attention: Loppo is still in its very early stages. Use it in production at your own risk.**
13
14First of all, arrange your documents into the following structure.
15
16```
17|- myProject
18 |- README.md
19 |- docs
20 |- page1.md
21 |- page2.md
22 |- ...
23```
24
25Now, install Loppo.
26
27```bash
28$ npm install loppo -g
29```
30
31Enter your project directory.
32
33```bash
34$ cd myProject
35```
36
37Run the command.
38
39```bash
40$ loppo
41```
42
43Now, Loppo will build the document site under `dist` sub-directory. After the building process, you could open the site in your browser.
44
45```bash
46$ open dist/index.html
47```
48
49## License
50
51GPL v3
52