Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.21 KB

flyout-menu.rst

File metadata and controls

57 lines (38 loc) · 2.21 KB

Flyout menu

When you are using a Read the Docs site, you will likely notice that we embed a menu on all the documentation pages we serve. This is a way to expose the functionality of Read the Docs on the page, without having to have the documentation theme integrate it directly.

There are two versions of the flyout menu:

Addons flyout menu

The updated :doc:`addons` flyout menu lists available documentation versions and translations, as well as useful links, offline formats, and a search bar.

/_static/images/flyout-addons.png

The opened flyout menu

Customizing the flyout menu

In your dashboard, you can configure flyout menu options in :guilabel:`Settings`, under :guilabel:`Addons (Beta)`.

Sort your versions :guilabel:`Alphabetically`, by :guilabel:`SemVer`, by :guilabel:`Python Packaging`, by :guilabel:`CalVer`, or define your own pattern.

Choose whether to list stable versions first or not.

Customizing the look of the addons flyout menu

The addons flyout exposes all the required data to build the flyout menu via a JavaScript CustomEvent. Take a look at an example of this approach at readthedocs/sphinx_rtd_theme#1526.

Original flyout menu

The flyout menu provides access to the following bits of Read the Docs functionality:

/_static/images/flyout-open.png

The opened flyout