Quick start
This quick setup assumes you already have Jekyll, Node and Prince (for PDF output) installed. If not, see setup guidance here.
Create a new project
- Download
electric-book.zipfrom the latest release and extract it. - In the extracted
electric-bookfolder, runnpm run electric-bookto see available commands and options. - Run
npm run electric-book -- installfirst. You should only need to do this once. -
Run
npm run electric-book -- outputscript to serve a website of your project.The template includes two books:
book: a bare-bones book to start working in; andsamples: a long book containing loads of examples.
Edit your first book
- Open
_data/works/book/default.ymland replace the sample book information there with your project and book information. - In the
bookfolder, overwrite the template’s markdown files with your own. - To change the design, edit the
.scssfiles for each output format: set project-wide styles in_sass, and book-specific styles inbook/styles. We suggest making all modifications in_sass/theme.
There is much more detail in the docs.