File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 22
33{% block extrahead %}
44{{ super() }}
5+ {% if not READTHEDOCS %}
56< script defer data-domain ="devguide.python.org " src ="https://analytics.python.org/js/script.outbound-links.js "> </ script >
6- < script > window . plausible = window . plausible || function ( ) { ( window . plausible . q = window . plausible . q || [ ] ) . push ( arguments ) } </ script >
7+ {% endif %}
78{% endblock %}
Original file line number Diff line number Diff line change 11import json
2+ import os
23from urllib .request import urlopen
34
45extensions = [
5152# Set to '' to prevent appending "documentation" to the site title
5253html_title = ""
5354
55+ html_context = {
56+ "READTHEDOCS" : bool (os .getenv ("READTHEDOCS" )),
57+ }
58+
5459linkcheck_allowed_redirects = {
5560 # Edit page
5661 r"https://docs.google.com/document/d/.*/" : r"https://docs.google.com/document/d/.*/edit" , # noqa: E501
You can’t perform that action at this time.
0 commit comments