The table of contents for your book lives entirely in myst.yml under project.toc.
There is no auto-generation script — you edit it directly.
The myst.yml TOC format¶
The toc is a list of files and sections:
project:
toc:
- file: tutorials/intro.md
- file: tutorials/W1D1_MyTopic/chapter_intro.md
children:
- file: tutorials/W1D1_MyTopic/W1D1_Tutorial1.md
- file: tutorials/W1D1_MyTopic/further_reading.mdEach day’s chapter_intro.md is the parent entry, and its title becomes the day’s
label in the sidebar. Don’t wrap it in a separate title: group. If you do, the day
shows up twice in the sidebar, once as the group and once as the intro page.
Logo and course title above the TOC¶
The top of the sidebar, above the TOC, shows the site logo and a short title. Set
them in myst.yml under site.options:
site:
options:
logo: _static/your_logo.svg
logo_dark: _static/your_logo_dark.svg # optional, used in dark mode
logo_text: Your Course Title # appears next to the logologo_text is the course name shown beside the logo — handy when the logo is an
icon rather than a full wordmark. Leave it out to show the logo on its own.
The default logo, colours and favicon come from the course kit (nma-kit sync-assets
writes them to _nma/); see W1D3 Tutorial 3 for changing them.
Naming convention¶
Follow the Neuromatch naming convention for all tutorial files:
tutorials/
W{week}D{day}_{TopicName}/
chapter_intro.md
W{week}D{day}_Tutorial1.md
W{week}D{day}_Tutorial2.md
W{week}D{day}_Tutorial3.md
W{week}D{day}_Bonus.md
further_reading.mdFor example: tutorials/W2D3_ReinforcementLearning/W2D3_Tutorial1.md
Adding a new day¶
Create the folder:
tutorials/W2D1_MyNewTopic/Create the files following the naming convention above
Add an entry to
project.tocinmyst.ymlPush to
main— CI handles the rest
further_reading.md pages¶
These are always static — no code execution. Simply omit the kernelspec from their
frontmatter and the page gets no editable cells.