MinoriWiki is a static Wiki site Generator .
Currently under development - PRs welcome
Usage
- Install via NPM:
npm install minori -g - Create an empty directory
minori init- Edit
config.ymlto fit your needs - Use
minori note [filename]to create new note or edit existing one, you can also useapi/datafor filename to create directories - Deploy your files generated under site directory (Default to
wiki) to production environment with commandminori commit.
source(defaults tonotes) directory contains all note markdown filesstatic(defaults tostatic) directory will be copied tositedirectory, you could store any static files that may be used in your wiki site.site(defaults towiki) directory contains generated site files.
If you are going to change the
site directory, just rename the wiki folder to keep Git objects.Commands
minori initorminori i- Init under current working directoryminori note [filename]orminori n [filename]- Create or edit noteminori doneorminori d- Generate site filesminori commitorminori c- Commit changes and deploy to production environment
Theme
Theme is customizable. Theme directory should contain:
assetsdirectory to store style sheets, scripts, fonts, etc.index.ejsis the homepage template.page.ejsis the post page template.
The following variables are passed to EJS:
config- the parsedconfig.ymlobjectcategories- Array of category object:
[
{
"name": "uncategoried",
"pages": [
{
"title": "page title",
"link": "page-file-name",
"category": "uncategoried",
"content": "parsed html"
},
...
]
},
...
]
page-{}in homepage and the specified page object in post page。
from https://github.com/phoenixlzx/MinoriWiki