Skip to content

Commit 9ca3155

Browse files
docs/conf.py: fix html builds on OpenBSD.
On OpenBSD rst2pdf doesn't install, so don't require it. This allows html builds to work on OpenBSD.
1 parent 62b7230 commit 9ca3155

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
1818
# ones.
1919
# extensions = ["sphinx.ext.autodoc", "sphinx.ext.coverage", "sphinx.ext.ifconfig"]
20-
extensions = [
21-
'rst2pdf.pdfbuilder'
22-
]
20+
extensions = []
21+
# rst2pdf is not available on OpenBSD.
22+
if os.uname()[0] != 'OpenBSD':
23+
extensions.append('rst2pdf.pdfbuilder')
2324

2425
# Add any paths that contain templates here, relative to this directory.
2526
templates_path = ["_templates"]

0 commit comments

Comments
 (0)