senovee
Gatsby based text viewer for web novel writers
Install / Usage
With npx
npx senovee ${DIR} [options]
or install globally
npm i -g senovee
senovee ${DIR} [options]
then open http://localhost:8000/ to see.
Options are passed to gatsby-cli
.
Feature
- auto-generate index by globbing files
- auto re-render with HMR
- kakuyomu-like view
- ruby syntax
-
|黄泉《よみ》
=> 黄泉 -
《《そういうこと》》
=> そういうこと
-
Roadmap
- grep
- char counter and visualizer
- cli to build
- embed textlint
- custom views
Example
If you locate text files like this:
- wonderful-story/
- chapter1/
- awesome.txt
- crap.txt
- chapter2/
- battle.txt
- draft.txt
- epilogue.txt
- prologue.txt
run senovee wonderful-story
and get rendered:
Note: By default, episodes are sorted by its filename. To place them in order correctly, you can add prefix to them.
- wonderful-story/
- 00_prologue.txt
- 01_chapter1/
- awesome.txt
- crap.txt
- 02_chapter2/
- battle.txt
- 03_draft.txt
- 99_epilogue.txt
Contribution
is welcome.