Skip to content

Commit

Permalink
gh-118689: Doc: fix ePub build (#118690)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed May 10, 2024
1 parent 7cc5e81 commit 7ac933e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,10 @@
epub_author = 'Python Documentation Authors'
epub_publisher = 'Python Software Foundation'

# index pages are not valid xhtml
# https://github.com/sphinx-doc/sphinx/issues/12359
epub_use_index = False

# Options for the coverage checker
# --------------------------------

Expand Down
1 change: 0 additions & 1 deletion Doc/library/allos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ but they are available on most other systems as well. Here's an overview:
io.rst
time.rst
argparse.rst
getopt.rst
logging.rst
logging.config.rst
logging.handlers.rst
Expand Down
2 changes: 1 addition & 1 deletion Doc/tools/extensions/glossary_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def process_glossary_nodes(app, doctree, fromdocname):
if app.builder.format != 'html':
if app.builder.format != 'html' or app.builder.embedded:
return

terms = {}
Expand Down
2 changes: 2 additions & 0 deletions Doc/tools/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
</style>
{{ super() }}

{%- if not embedded %}
<meta name="readthedocs-addons-api-version" content="1">
<script type="text/javascript">
function onSwitch(event) {
Expand Down Expand Up @@ -127,4 +128,5 @@
}
});
</script>
{%- endif %}
{% endblock %}

0 comments on commit 7ac933e

Please sign in to comment.