File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 419
419
epub_author = 'Python Documentation Authors'
420
420
epub_publisher = 'Python Software Foundation'
421
421
422
+ # index pages are not valid xhtml
423
+ # https://github.com/sphinx-doc/sphinx/issues/12359
424
+ epub_use_index = False
425
+
422
426
# Options for the coverage checker
423
427
# --------------------------------
424
428
Original file line number Diff line number Diff line change 20
20
21
21
22
22
def process_glossary_nodes (app , doctree , fromdocname ):
23
- if app .builder .format != 'html' :
23
+ if app .builder .format != 'html' or app . builder . embedded :
24
24
return
25
25
26
26
terms = {}
Original file line number Diff line number Diff line change 42
42
</ style >
43
43
{{ super() }}
44
44
45
+ {%- if not embedded %}
45
46
< meta name ="readthedocs-addons-api-version " content ="1 ">
46
47
< script type ="text/javascript ">
47
48
function onSwitch ( event ) {
127
128
}
128
129
} ) ;
129
130
</ script >
131
+ {%- endif %}
130
132
{% endblock %}
You can’t perform that action at this time.
0 commit comments