pythonversionpython-sphinx

Sphinx version is not shown with read-the-docs theme


I'm using:

Usually (with an earlier sphinx version for python 2.7) sphinx showed the "version" above the search bar by simply indicating version and release in the conf.py

enter image description here

But that seems not to work like that anymore, any idea on how to achieve that? Or is this no longer part of the theme and I would need to and edit the layout.html?


Solution

  • It appears that a single version has been replaced with a version selector that works only on RTD in a recent version of sphinx_rtd_theme.

    See the option version_selector.

    Display a version selector below the title. This feature makes usage of Read the Docs Addons for this, so it’s required the documentation to be hosted on Read the Docs. It only appears when there are more than 1 active version.

    So you can either override the theme, downgrade to an earlier version of the theme, or select a different theme.