Skip To Article

In the default MyST templates there are several sections of the page that help your users navigate within and between pages. Here’s how you can configure them.

Website Layout

The default MyST themes are divided into five main sections:

The layout of the default MyST web themes.
Other themes may have slightly different structure.

The layout of the default MyST web themes. Other themes may have slightly different structure.

In addition to your MyST document’s Table of Contents, you may specify a top-level navigation for your MyST site. These links are displayed across all pages of your site, and are useful for quickly jumping to sections of your site, or for external links.

Specify top-level navigation with the site.nav option, and provide a collection of navigation links similar to how the Table of Contents is structured. For example:

myst.yml
site:
  nav:
    - title: Internal page
      url: /website-metadata

There are a few types of entries you can define:

TypePatternDescription
Internal paths
- title: Custom title
  url: /path/to/document
A path to an internal page. This should begin with /. Do not include the file extension of the page!
External URLs
- title: Custom title
  url: https://somelink.org`
Direct links to an external website. This should be a fully-specified URL.
Dropdowns
- title: Dropdown title
  children:
  - url: pageone
  - url: pagetwo
Becomes a dropdown with other entries inside.

Action Buttons

Action buttons provide a more noticeable button that invites users to click on them. Add action buttons to your site header with the site.actions option.

For example:

myst.yml
site:
  actions:
    - title: A URL
      url: https://mystmd.org

There are two types of actions:

TypePatternDescription
Static downloads
- title: Custom title
  url: path/to/myfile.png
A path to an internal file. This turns the button into a download link for the file.
External URLs
- title: Custom title
  url: https://somelink.org`
Direct links to an external website. This should be a fully-specified URL.

Is defined by your MyST Project Table of Contents.

Hide the primary sidebar

To hide the Primary Sidebar, use site.options.hide_toc like so:

myst.yml
site:
  options:
    hide_toc: true

Is populated with page-level metadata and your page’s content. See Frontmatter for many kinds of metadata that configure this section.

Contains the in-page navigation of the page, autopopulated by the page’s header structure.

Hide the secondary sidebar

To hide the secondary sidebar, use the site.options.hide_outline option:

myst.yml
site:
  options:
    hide_outline: true
MyST MarkdownMyST Markdown
Community-driven tools for the future of technical communication and publication, part of Jupyter.