mirror of https://github.com/python/cpython
gh-118689: Doc: fix ePub build (#118690)
This commit is contained in:
parent
7cc5e81a82
commit
7ac933e260
|
@ -435,6 +435,10 @@ latex_appendices = ['glossary', 'about', 'license', 'copyright']
|
||||||
epub_author = 'Python Documentation Authors'
|
epub_author = 'Python Documentation Authors'
|
||||||
epub_publisher = 'Python Software Foundation'
|
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
|
# Options for the coverage checker
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ but they are available on most other systems as well. Here's an overview:
|
||||||
io.rst
|
io.rst
|
||||||
time.rst
|
time.rst
|
||||||
argparse.rst
|
argparse.rst
|
||||||
getopt.rst
|
|
||||||
logging.rst
|
logging.rst
|
||||||
logging.config.rst
|
logging.config.rst
|
||||||
logging.handlers.rst
|
logging.handlers.rst
|
||||||
|
|
|
@ -20,7 +20,7 @@ JSON = 'glossary.json'
|
||||||
|
|
||||||
|
|
||||||
def process_glossary_nodes(app, doctree, fromdocname):
|
def process_glossary_nodes(app, doctree, fromdocname):
|
||||||
if app.builder.format != 'html':
|
if app.builder.format != 'html' or app.builder.embedded:
|
||||||
return
|
return
|
||||||
|
|
||||||
terms = {}
|
terms = {}
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
</style>
|
</style>
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
|
|
||||||
|
{%- if not embedded %}
|
||||||
<meta name="readthedocs-addons-api-version" content="1">
|
<meta name="readthedocs-addons-api-version" content="1">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function onSwitch(event) {
|
function onSwitch(event) {
|
||||||
|
@ -127,4 +128,5 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
{%- endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue