Skip to content

Commit 93d9db3

Browse files
committed
(Debian packaging) Fix Sphinx API usage to allow package to build
1 parent cd1095c commit 93d9db3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Description: (Debian packaging) Fix Sphinx API usage to allow package to build
2+
Author: Kyle Kloberdanz <[email protected]>
3+
Forwarded: not-needed
4+
--- a/build/sphinx/mongoc_common.py
5+
+++ b/build/sphinx/mongoc_common.py
6+
@@ -143,7 +143,7 @@ def generate_html_redirs(app: Sphinx, page: str, templatename: str, context: dic
7+
return
8+
if page == "index" or page.endswith(".index"):
9+
return
10+
- path = app.project.doc2path(page, basedir=False)
11+
+ path = app.project.doc2path(page, absolute=True)
12+
out_index_html = Path(builder.get_outfilename(page))
13+
slug = out_index_html.parent.name
14+
redirect_file = out_index_html.parent.parent / f"{slug}.html"

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
0001_local_mathjax.diff
2+
0002_sphinx_api_fix.diff

0 commit comments

Comments
 (0)