mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-118689: Doc: fix ePub build (GH-118690)
(cherry picked from commit 7ac933e260
)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This commit is contained in:
parent
d524802e9d
commit
760b3f08dc
4 changed files with 7 additions and 2 deletions
|
@ -20,7 +20,7 @@ JSON = 'glossary.json'
|
|||
|
||||
|
||||
def process_glossary_nodes(app, doctree, fromdocname):
|
||||
if app.builder.format != 'html':
|
||||
if app.builder.format != 'html' or app.builder.embedded:
|
||||
return
|
||||
|
||||
terms = {}
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
</style>
|
||||
{{ super() }}
|
||||
|
||||
{%- if not embedded %}
|
||||
<meta name="readthedocs-addons-api-version" content="1">
|
||||
<script type="text/javascript">
|
||||
function onSwitch(event) {
|
||||
|
@ -127,4 +128,5 @@
|
|||
}
|
||||
});
|
||||
</script>
|
||||
{%- endif %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue