Instruction file imported from chenlh317/camera_kits (
.github/instructions/photobook.instructions.md). Copyright stays with the author.
PhotoBook (Jupyter Book) instructions
PhotoBook is built with jupyter-book 1.0.3 using MyST Markdown. Configuration lives in photo_book/_config.yml and the table of contents in photo_book/_toc.yml.
Headings and anchors
myst_heading_anchors: 3is set, so H1–H3 produce stable auto-generated anchor IDs. Reference them with{ref}`Label <anchor-id>`.- Keep heading wording stable once anchors are referenced from elsewhere
(
index.mdquick-links, sibling chapters). If you must rename a heading, search the wholephoto_book/tree for the old anchor and update every reference.
Roles and directives
- Cross-references:
{ref}`...`for headings,{doc}`...`for whole files,{numref}`...`for numbered figures/tables. - Diagrams: use
sphinxcontrib-mermaidfenced blocks (```{mermaid}). - Images: store under photo_book/pics/ and embed via
the
figuredirective so they get captions and numbering.
Table of contents
- When adding a new chapter, register it in
photo_book/_toc.yml under the appropriate
caption(Gears / Tips / Notes). - File paths in
_toc.ymlare relative tophoto_book/and omit the.mdextension.
Validation
- After non-trivial edits, run build_photo_book.bat and check the output for warnings (broken refs, duplicate labels, missing images).
- Do not edit anything under
photo_book/_build/— it is regenerated.
Claims and voice
- Do not manufacture subjective or emotional claims. Only state a personal reaction, surprise, superlative, or value judgement if the user explicitly supplied it in the brief (or it already exists in the file you are editing).
- Phrases like "this surprised me most", "more than I expected", "the single most useful thing I learned", "I was amazed", "my favourite", or "the best/worst by far" must come from the user — never invent them to add colour or emphasis.
- When the user has not supplied a reaction, state the observable fact neutrally (what happened, what the data shows, what the gear did) and let it stand on its own. Describe the evidence, not an imagined feeling about it.
- Reflective asides about gear and shooting decisions are still welcome (see the trip-notes voice), but keep them grounded in what the user actually reported.
Style
- Gear pages (
gears/) and tips (tips/) are analytical / reference-style: prefer tables, bullet lists, and numbered steps. - Always include an in-page table of contents near the top of a chapter
(after the title / summary) with a
```{contents}block, e.g.```{contents}\n:depth: 4\n```. - Never label a summary "TL;DR" — use "Summary" instead (e.g. an
```{admonition} Summaryblock), which suits the reference tone. - Preserve mixed-language content (Chinese, English, Norwegian, etc.) as-is.