File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1+ {% extends "!page.html" %}
2+
3+ {% block extrahead %}
4+ {{ super() }}
5+ {% if not READTHEDOCS %}
6+ < script defer data-domain ="devguide.python.org " src ="https://analytics.python.org/js/script.outbound-links.js "> </ script >
7+ {% endif %}
8+ {% endblock %}
Original file line number Diff line number Diff line change 11import json
2+ import os
23from urllib .request import urlopen
34
45extensions = [
3738 "source_repository" : "https://github.com/python/devguide" ,
3839 "source_branch" : "main" ,
3940}
41+ templates_path = ['_templates' ]
4042html_static_path = ['_static' ]
4143html_css_files = [
4244 'devguide_overrides.css' ,
5052# Set to '' to prevent appending "documentation" to the site title
5153html_title = ""
5254
55+ html_context = {
56+ "READTHEDOCS" : bool (os .getenv ("READTHEDOCS" )),
57+ }
58+
5359linkcheck_allowed_redirects = {
5460 # Edit page
5561 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