snappy-book-example
Snappy Book Example
Example book manifest for testing snappy book compilation.
Usage
# Compile with default settings
snappy --book snappy-book-example -o test-book.pdf
# With executive theme
snappy --book snappy-book-example -t executive -o test-book.pdf
# Skip TOC and chapter numbers
snappy --book snappy-book-example --no-toc --no-numbers -o test-book.pdfManifest
title: "Wanderland Thesis"
author: "Graeme Fawcett"
include_toc: true
number_chapters: true
chapters:
- slug: wonderfully-weird
- title: "The Yoneda Lemma"
slug: yoneda-lemon
- title: "Structural Isomorphism"
slug: structural-isomorphism-thesis
sections:
- slug: streams-all-the-way-down
- slug: theoretical-foundations-streams-with-gapsFormat Reference
The manifest YAML supports:
Simple chapter (uses H1 as title)
- slug: node-slugChapter with custom title
- title: "My Custom Title"
slug: node-slugChapter with nested sections
- title: "Chapter Title"
slug: chapter-node
sections:
- slug: section-1
- title: "Custom Section"
slug: section-2
sections:
- slug: subsection-1Header Demotion Rules
Headers get demoted based on depth in the TOC:
| Depth | Role | Original H1 | Original H2 | Original H3 |
|---|---|---|---|---|
| 0 | Chapter | H1 | H2 | H3 |
| 1 | Section | H2 | H3 | H4 |
| 2 | Subsection | H3 | H4 | H5 |
The first H1 in each node is stripped and replaced with the TOC entry title.
Provenance
Document
- Status: π΄ Unverified
Changelog
- 2026-01-23 05:26: Node created by mcp - Creating example book manifest for snappy
North
slots:
- slug: required-reading
context:
- Linking snappy example to required-reading
β northrequired-reading