new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Storybook · Writing and testing · all subjects

autodocs/table-of-contents

5 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Table of contents configuration options

Available `toc` configuration options: `contentsSelector` (CSS selector for headings container, default: '.sbdocs-content'), `disable` (boolean to hide TOC), `headingSelector` (defines headings to feature, default shows h3), `ignoreSelector` (ignores specific headings or stories, by default ignores content in Story blocks), `title` (accepts string, null, or React element), and `unsafeTocbotOptions` (additional TocBot configuration options).

Component-level table of contents configuration

You can customize the table of contents for a specific story by including a `toc` property in the story's meta (default export) and providing the required configuration options. For example, you can hide the table of contents for a specific story.

Table of contents doesn't render with single heading

If you have an autodocs documentation page with only one matching heading, the table of contents will not be hidden by default. A potential solution is to add a second heading or disable the table of contents entirely.

Table of contents hidden on screens smaller than 1200px

The table of contents is hidden by default on screens with width less than 1200px. Currently, there is no built-in solution for this that doesn't impact the documentation page's style compatibility.

Table of contents limitations with unattached MDX documentation

When writing unattached documentation using MDX, you cannot customize the table of contents due to lack of support for defining parameters. The table of contents will always revert to the default configuration provided globally.

Give your agent this brain