mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-24 17:35:01 +01:00
8b0637ddcc
The sphinxcontrib-versioning seems unmaintainted and I can't get the fork that we used before this PR working on Python 3.10. The situation wrt maintenance doesn't seem much better for sphinx-multiversion, but, at least I could get it to work with current sphinx versions. The main problem with sphinx-multiversion is that it doesn't render anything at `/`. I.e., `https://zrepl.github.io/configuration.html` will be 404. That's different from `sphinxcontrib-versioning`, and thus switching to sphinx-multiversion would break URLs. We host on GitHub pages and don't control the webserver, so, we can't use webserver-level redirects to keep the URLs working. We could create JS-level redirects, or `http-equiv`, but that's ugly as well. The simplest solution was to fork sphinx-multiversion and hard-code zrepl's specific needs into that fork. The fork is based off v0.2.4 and pinned via requirements.txt. Here are its unique commits: https://github.com/Holzhaus/sphinx-multiversion/compare/master...zrepl:sphinx-multiversion:zrepl We should revisit `sphinx-polyversion` in the future once its docs improve. See https://github.com/Holzhaus/sphinx-multiversion/issues/88#issuecomment-1606221194 This PR updates the various Python packages, as I couldn't get sphinx-multiversion to work with the (very old) versions that were pinned in `requirements.txt` prior to this PR. This PR's `requirements.txt` is from a clean Python 3.10 venv on Ubuntu 22.10 after running ``` pip install sphinx sphinx-rtd-theme pip install 'git+https://github.com/zrepl/sphinx-multiversion/@52c915d7ad898d9641ec48c8bbccb7d4f079db93#egg=sphinx_multiversion' ```
25 lines
601 B
Plaintext
25 lines
601 B
Plaintext
alabaster==0.7.13
|
|
Babel==2.12.1
|
|
certifi==2023.7.22
|
|
charset-normalizer==3.2.0
|
|
docutils==0.18.1
|
|
idna==3.4
|
|
imagesize==1.4.1
|
|
Jinja2==3.1.2
|
|
MarkupSafe==2.1.3
|
|
packaging==23.1
|
|
Pygments==2.16.1
|
|
requests==2.31.0
|
|
snowballstemmer==2.2.0
|
|
Sphinx==7.2.5
|
|
sphinx-multiversion @ git+https://github.com/zrepl/sphinx-multiversion/@52c915d7ad898d9641ec48c8bbccb7d4f079db93
|
|
sphinx-rtd-theme==1.3.0
|
|
sphinxcontrib-applehelp==1.0.7
|
|
sphinxcontrib-devhelp==1.0.5
|
|
sphinxcontrib-htmlhelp==2.0.4
|
|
sphinxcontrib-jquery==4.1
|
|
sphinxcontrib-jsmath==1.0.1
|
|
sphinxcontrib-qthelp==1.0.6
|
|
sphinxcontrib-serializinghtml==1.1.9
|
|
urllib3==2.0.4
|