sphinx-contrib / sphinxcontrib-versioning

Sphinx extension that allows building versioned docs for self-hosting.
https://sphinxcontrib-versioning.readthedocs.io/en/latest/
MIT License
125 stars 81 forks source link

Support themes inherited from sphinx_rtd_theme #47

Open Lingnik opened 6 years ago

Lingnik commented 6 years ago

versions.html checks to make sure html_theme == sphinx_rtd_theme. We created a theme based off of sphinx_rtd_theme, and had to copy a modified versions.html into our theme && remove the conditional in there in order to get the versions dropdown to show. On an upgrade of sphinxcontrib-versioning, if versions.html is refactored, we won't get the latest and greatest changes.

Would like a way to either: A) Provide a str/tuple of strs referencing additional sphinx_rtd_theme-like themes. B) Introspect the specified theme to figure out if it inherits from sphinx_rtd_theme.