Use sphinx-build-compatibility to Keep Sphinx Compatibility (#4492)

This commit is contained in:
Bibo-Joshi 2024-10-31 08:27:58 +01:00 committed by GitHub
parent 5ab82a9c2b
commit 6540f288f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -4,4 +4,6 @@ furo-sphinx-search @ git+https://github.com/harshil21/furo-sphinx-search@v0.2.0.
sphinx-paramlinks==0.6.0 sphinx-paramlinks==0.6.0
sphinxcontrib-mermaid==1.0.0 sphinxcontrib-mermaid==1.0.0
sphinx-copybutton==0.5.2 sphinx-copybutton==0.5.2
sphinx-inline-tabs==2023.4.21 sphinx-inline-tabs==2023.4.21
# Temporary. See #4387
sphinx-build-compatibility @ git+https://github.com/readthedocs/sphinx-build-compatibility.git@58aabc5f207c6c2421f23d3578adc0b14af57047

View file

@ -48,6 +48,10 @@ extensions = [
"sphinx_search.extension", "sphinx_search.extension",
] ]
# Temporary. See #4387
if os.environ.get("READTHEDOCS", "") == "True":
extensions.append("sphinx_build_compatibility.extension")
# For shorter links to Wiki in docstrings # For shorter links to Wiki in docstrings
extlinks = { extlinks = {
"wiki": ("https://github.com/python-telegram-bot/python-telegram-bot/wiki/%s", "%s"), "wiki": ("https://github.com/python-telegram-bot/python-telegram-bot/wiki/%s", "%s"),