Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7ac933e

Browse filesBrowse files
authored
gh-118689: Doc: fix ePub build (#118690)
1 parent 7cc5e81 commit 7ac933e
Copy full SHA for 7ac933e

File tree

Expand file treeCollapse file tree

4 files changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+7
-2
lines changed

‎Doc/conf.py

Copy file name to clipboardExpand all lines: Doc/conf.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@
435435
epub_author = 'Python Documentation Authors'
436436
epub_publisher = 'Python Software Foundation'
437437

438+
# index pages are not valid xhtml
439+
# https://github.com/sphinx-doc/sphinx/issues/12359
440+
epub_use_index = False
441+
438442
# Options for the coverage checker
439443
# --------------------------------
440444

‎Doc/library/allos.rst

Copy file name to clipboardExpand all lines: Doc/library/allos.rst
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ but they are available on most other systems as well. Here's an overview:
1616
io.rst
1717
time.rst
1818
argparse.rst
19-
getopt.rst
2019
logging.rst
2120
logging.config.rst
2221
logging.handlers.rst

‎Doc/tools/extensions/glossary_search.py

Copy file name to clipboardExpand all lines: Doc/tools/extensions/glossary_search.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
def process_glossary_nodes(app, doctree, fromdocname):
23-
if app.builder.format != 'html':
23+
if app.builder.format != 'html' or app.builder.embedded:
2424
return
2525

2626
terms = {}

‎Doc/tools/templates/layout.html

Copy file name to clipboardExpand all lines: Doc/tools/templates/layout.html
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
</style>
4343
{{ super() }}
4444

45+
{%- if not embedded %}
4546
<meta name="readthedocs-addons-api-version" content="1">
4647
<script type="text/javascript">
4748
function onSwitch(event) {
@@ -127,4 +128,5 @@
127128
}
128129
});
129130
</script>
131+
{%- endif %}
130132
{% endblock %}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.