Skip to content
This repository was archived by the owner on Nov 11, 2023. It is now read-only.

hundredrabbits/thebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Rek Bell
Nov 11, 2023
eefe769 · Nov 11, 2023
Feb 12, 2021
Feb 21, 2021
Mar 20, 2021
Mar 20, 2021
Nov 11, 2023
Feb 21, 2021
Feb 21, 2021
Feb 17, 2021
Oct 10, 2021

Repository files navigation

North Pacific Logbook

This repository is no longer updated(since 2021.10.09), see the new location of the project.

Building the logbook requires Pandoc and Calibre.

Missing cover image

# Add metadata to header
rm -f assembled.md
cat metadata.yaml north_pacific_logbook.md > assembled.md

# Build pdf
rm -f assembled.pdf
convert img/cover.jpg cover.pdf
~/Applications/pandoc --variable=geometry:a5paper north_pacific_logbook.md --pdf-engine=xelatex --from markdown+simple_tables+line_blocks -o north_pacific_logbook.pdf
pdfunite cover.pdf north_pacific_logbook.pdf assembled.pdf

# Build epub
~/Applications/pandoc assembled.md --from markdown+simple_tables+line_blocks --toc -V toc-title:"Table of Contents" --toc-depth=2 --epub-metadata=metadata.yaml --epub-cover-image=img/cover.jpg --css epub.css -w epub -o assembled.epub

# Build mobi
ebook-convert "assembled.epub" "assembled.mobi"

# Cleanup
rm -f assembled.md
rm -f cover.pdf

Licenses

Busy Doing Nothing's source code (to build a book) is licensed under MIT and the images, text and assets are licensed under BY-NC-SA 4.0. View individual licenses for details.

About

north pacific logbook

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published