* debian/patches/fix-sphinx-build.patch: New patch, fixes building with

latest sphinx, taken from upstream pull request #2080.
This commit is contained in:
Michael Banck 2021-10-07 11:15:16 +02:00
parent 4f4460c3af
commit 2a118588e7
3 changed files with 16 additions and 0 deletions

2
debian/changelog vendored
View file

@ -6,6 +6,8 @@ patroni (2.1.1-2) UNRELEASED; urgency=medium
[ Michael Banck ]
* debian/patches/dcs-last-seen.patch: New patch, taken from upstream commit
2f31e88b.
* debian/patches/fix-sphinx-build.patch: New patch, fixes building with
latest sphinx, taken from upstream pull request #2080.
-- Debian PostgreSQL Maintainers <team+postgresql@tracker.debian.org> Fri, 20 Aug 2021 10:54:10 +0200

13
debian/patches/fix-sphinx-build.patch vendored Normal file
View file

@ -0,0 +1,13 @@
diff --git a/docs/conf.py b/docs/conf.py
index 20fa354..ae19400 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -194,4 +194,7 @@ intersphinx_mapping = {'https://docs.python.org/': None}
# A possibility to have an own stylesheet, to add new rules or override existing ones
# For the latter case, the CSS specificity of the rules should be higher than the default ones
def setup(app):
- app.add_stylesheet("custom.css")
+ if hasattr(app, 'add_css_file'):
+ app.add_css_file('custom.css')
+ else:
+ app.add_stylesheet('custom.css')

View file

@ -6,3 +6,4 @@ regression_tests_disable_requirement_download.patch
requirements_cdiff.patch
regression_tests_disable_raft_tests.py
dcs-last-seen.patch
fix-sphinx-build.patch