name: new-chapter description: Create a new chapter directory with template and update _toc.yml disable-model-invocation: true
Create a new chapter for the Jupyter Book. The user provides a chapter number and topic title.
Steps:
- Determine the directory name following the convention:
book/NN_topic_name/(e.g.,book/15_moons/) - Create the chapter directory under
book/ - Create the main markdown file inside it (e.g.,
book/15_moons/moons.md) using the structure of existing chapters as a template, including:- A top-level heading with the chapter title
- Placeholder sections for key content
- Proper MyST Markdown syntax
- Use of the project's custom LaTeX macros where relevant (
\Msun,\Rearth,\Mjup,\kB,\dv,\pdv, etc.)
- Create a
figures/subdirectory inside the chapter directory - Add the chapter to
book/_toc.ymlin the correct position (ordered by chapter number) - Report what was created