Yet another static site generator.
- Designed for light novels
- CLI tools
- Sync tool (TODO)
npx nanako create my-awesome-blog
Usage: nanako [options] [command]
Commands:
add, a Add a book or a chapter, or both.
create, c Create a nanako project.
help Display help
version Display version
Options:
-h, --help Output usage information
-v, --version Output the version number
-y, --yes Optional: skip the prompts and init the book or the chapter with the default meta.json.
Examples:
- Create a nanako instance in folder my-awesome-blog.
$ npx nanako create my-awesome-blog
- Create a book.
$ npx nanako add my-awesome-book
- Create a chapter under my-awesome-book
$ npx nanako add my-awesome-book my-awesome-chapter
docs
โโ lixia // book
โโ chapter2 // chapter
โ โโ 1.md
โ โโ meta.json
โโ intro
โ โโ archives
โ โ โโ ็ซๅคๅบ็ซ ็ฎ.epub
โ โ โโ ็ซๅคๅบ็ซ ็น.epub
โ โโ images
โ โ โโ alice.jpg
โ โ โโ nanzhi1.jpg
โ โ โโ nanzhi2.jpg
โ โ โโ yuyao1.jpg
โ โ โโ yuyao2.jpg
โ โ โโ yuyao3.jpg
โ โโ 1.md
โ โโ 10.md
โ โโ 11.md
โ โโ 12.md
โ โโ 13.md
โ โโ 14.ๅฐพๅฃฐ.md
โ โโ 15.ๅ่ฎฐ.md
โ โโ 2.md
โ โโ 3.md
โ โโ 4.md
โ โโ 5.md
โ โโ 6.md
โ โโ 7.md
โ โโ 8.md
โ โโ 9.md
โ โโ meta.json
โโ meta.json
{
"title": "็ซๅค",
"lang": "zh-Hans",
"index": 1,
"category": "novel"
}
![nanzhi1](./images/nanzhi1.jpg)
Will automatically redirect to /images/nanzhi1.jpg
{
"port": 20200,
"footer": "ๅฏนไบๆฌ็ฝ็ซๅๅฑ็คบ็ไฝๅ๏ผไฝ่
ไฟ็ไธๅๆๅใ",
"title": "ๅฐๅตๆฐๅงฌ็ๅๅฎข",
"headTitle": "ๅๅๅๅๅตๅฟ",
"cookieConsent": true,
"categories": {
"novel": "ๅฐ่ฏด",
"casual": "้็ฌ",
"tutorial": "ๆ็จ",
"uncategorized": "ๆชๅ็ฑป"
},
"cacheTTL": 600, // cache ttl for chapters fetch
"cacheTTLLong": 3600 // cache ttl for books and sections fetch
}
yarn build
yarn start
# or
NODE_ENV=production node nanako.js
Please refer to the Next.js documentations for anything that goes wrong with deployment.