Create novels using markdown.
- Pandoc
- Weasyprint
- Poppler
- BASH >= 4.0
Note: All
./nb
commands must be called from inside thenovel-builder
directory
- Create a new repository.
- Make a new directory
src/
and populate it with chapters. Chapters in the resulting documents will be ordered alphabetically, so make sure you name your files accordingly. E.g.Chapter_01.md, Chapter_02.md, etc.
- Add this repository as a git submodule:
git submodule add https://github.com/jechasteen/novel-builder
- Descend into
novel-builder
directory - Call
./nb init
to customize your project. This runs a wizard that automatically fills in the templates with your project's info. - CSS and HTML files will be added to your
src/
directory. Customize these files to suit your needs. - Use the
nb
script to build and maintain your project./nb manuscript
builds a submission-ready manuscript./nb paperback
builds a paperback-formatted pdf (according tosrc/css/paperback.css
). See the @page documentation for more info../nb clean
removes thebuild/
directory../nb wc
prints word count for each chapter, a grand total count, and the estimated reading time (based on 250 words/minute).
Calling ./nb init
runs a wizard which will customize files like title pages automatically. If you need to make changes, you can either edit the files individually, or go into your src/
and remove the non-markdown files (rm -r css/ html/
) and call ./nb init
again.
If you need to make styling changes, make the changes to the files that nb
created in your src/
directory.
To pull the latest git master of this module, call git submodule update --remote --merge
.