File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
33{% block extrahead %}
44{{ super() }}
5- {% if not READTHEDOCS %}
5+ {% if not is_deployment_preview %}
66< script defer data-domain ="devguide.python.org " src ="https://analytics.python.org/js/script.outbound-links.js "> </ script >
77{% endif %}
88{% endblock %}
Original file line number Diff line number Diff line change 5252# Set to '' to prevent appending "documentation" to the site title
5353html_title = ""
5454
55+ # Deployment preview information
56+ # (See .readthedocs.yaml and https://docs.readthedocs.io/en/stable/reference/environment-variables.html)
57+ is_deployment_preview = os .getenv ("READTHEDOCS_VERSION_TYPE" ) == "external"
58+
5559html_context = {
56- "READTHEDOCS " : bool ( os . getenv ( "READTHEDOCS" )) ,
60+ "is_deployment_preview " : is_deployment_preview ,
5761}
5862
5963linkcheck_allowed_redirects = {
You can’t perform that action at this time.
0 commit comments