Edmondo
Edmondo

Reputation: 20080

How to host multiple version of a Sphinx based documentation on GitHub?

When using Github pages to host Sphinx documentation, it might be desirable to host multiple versions of the same documentation for different branches or tag of the code. However, both sphinxcontrib-multiversion and sphinxcontrib-versioning are not actively maintained and they do not work with the latest version of Sphinx.

If one does not want to use ReadTheDocs, and want to stick to the Alabaster theme, what would be the right solution ?

Upvotes: 2

Views: 1636

Answers (1)

Brecht Machiels
Brecht Machiels

Reputation: 3410

For a DIY implementation, you can refer to how I implemented this for the rinohtype documentation. I first implemented this for the Sphinx RTD theme and later switched to Sphinx-Immaterial. Note that both of these themes provide version selectors, which I don't think Alabaster does.

These are the relevant commits:

Upvotes: 7

Related Questions