Layout and Page Elements#

Control page structure, navigation, and content layout.

Full-Width Content#

Extend content into the right margin by adding the full-width class:

```{note}
:class: full-width
This content will be full-width
```

Note

This content will be full-width

Tip

A note for ipynb users If you are using a Jupyter Notebook as inputs to your documentation using the MyST-NB extension, you can trigger this behavior with a code cell by adding a full-width tag to the cell.

Quotations and Epigraphs#

A standard quote:

Here’s my quote, it’s pretty neat. I wonder how many lines I can create with a single stream-of-consciousness quote. I could try to add a list of ideas to talk about. I suppose I could just keep going on forever, but I’ll stop here.

An epigraph draws more attention:

Here’s my quote, it’s pretty neat. I wonder how many lines I can create with a single stream-of-consciousness quote. I could try to add a list of ideas to talk about. I suppose I could just keep going on forever, but I’ll stop here.

With attribution:

Here’s my quote, it’s pretty neat. I wonder how many lines I can create with a single stream-of-consciousness quote. I could try to add a list of ideas to talk about. I suppose I could just keep going on forever, but I’ll stop here.

—Jo the Jovyan, the jupyter book docs

Controlling the Left Navigation Bar#

Expand sections#

Keep sub-sections permanently expanded:

html_theme_options = {
    ...
    "expand_sections": ["list", "of", "pages"],
    ...
}

Add a header to the TOC#

Use :caption: My header text in your toctree directive.

Show the home page in the TOC#

html_theme_options = {
    ...
    "home_page_in_toc": True,
    ...
}