Skip to content

Commit ee3840a

Browse files
Merge branch 'main' into exclude-contrib
2 parents 8d2ede0 + 9537d3d commit ee3840a

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

_templates/page.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "!page.html" %}
2+
3+
{% block extrahead %}
4+
{{ super() }}
5+
{% if not is_deployment_preview %}
6+
<script defer data-domain="devguide.python.org" src="https://analytics.python.org/js/script.outbound-links.js"></script>
7+
{% endif %}
8+
{% endblock %}

conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
import os
23
from urllib.request import urlopen
34

45
extensions = [
@@ -38,6 +39,7 @@
3839
"source_repository": "https://github.com/python/devguide",
3940
"source_branch": "main",
4041
}
42+
templates_path = ['_templates']
4143
html_static_path = ['_static']
4244
html_css_files = [
4345
'devguide_overrides.css',
@@ -51,6 +53,14 @@
5153
# Set to '' to prevent appending "documentation" to the site title
5254
html_title = ""
5355

56+
# Deployment preview information
57+
# (See .readthedocs.yaml and https://docs.readthedocs.io/en/stable/reference/environment-variables.html)
58+
is_deployment_preview = os.getenv("READTHEDOCS_VERSION_TYPE") == "external"
59+
60+
html_context = {
61+
"is_deployment_preview": is_deployment_preview,
62+
}
63+
5464
linkcheck_allowed_redirects = {
5565
# Edit page
5666
r"https://docs.google.com/document/d/.*/": r"https://docs.google.com/document/d/.*/edit", # noqa: E501

core-team/experts.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ ftplib giampaolo*
114114
functools rhettinger*
115115
gc pitrou, pablogsal, nascheme
116116
getopt serhiy-storchaka*
117-
getpath FFY00
117+
getpath FFY00*
118118
getpass
119119
gettext tomasr8
120120
glob serhiy-storchaka*
@@ -127,7 +127,7 @@ http
127127
idlelib kbkaiser (inactive), terryjreedy*, serwy (inactive),
128128
taleinat
129129
imaplib
130-
importlib brettcannon
130+
importlib brettcannon, FFY00*
131131
inspect 1st1
132132
io benjaminp, stutzbach^
133133
ipaddress pmoody^
@@ -144,7 +144,7 @@ marshal
144144
math rhettinger, stutzbach^
145145
mimetypes
146146
mmap Yhg1s
147-
modulefinder theller (inactive), jvr^
147+
modulefinder theller (inactive), jvr^, FFY00
148148
msvcrt
149149
multiprocessing applio*, pitrou, jnoller^ (inactive), sbt^ (inactive), gpshead*
150150
netrc
@@ -158,7 +158,7 @@ pathlib barneygale*
158158
pdb gaogaotiantian
159159
pickle avassalotti, serhiy-storchaka*
160160
pickletools avassalotti, serhiy-storchaka*
161-
pkgutil
161+
pkgutil FFY00*
162162
platform malemburg
163163
plistlib
164164
poplib
@@ -179,7 +179,7 @@ readline Yhg1s
179179
reprlib
180180
resource Yhg1s
181181
rlcompleter
182-
runpy ncoghlan
182+
runpy ncoghlan, FFY00
183183
sched
184184
secrets
185185
select
@@ -188,7 +188,7 @@ shelve
188188
shlex
189189
shutil tarekziade, giampaolo
190190
signal gpshead
191-
site
191+
site FFY00*
192192
smtplib
193193
socket gpshead
194194
socketserver
@@ -202,7 +202,7 @@ struct meadori
202202
subprocess astrand^ (inactive), giampaolo, gpshead*
203203
symtable benjaminp
204204
sys
205-
sysconfig FFY00
205+
sysconfig FFY00*
206206
syslog jafo^*
207207
tabnanny tim-one (inactive)
208208
tarfile gustaebel
@@ -230,7 +230,7 @@ unittest ezio-melotti, rbtcollins, gpshead, serhiy-storchaka*
230230
unittest.mock
231231
urllib orsenthil
232232
uuid
233-
venv vsajip, FFY00
233+
venv vsajip, FFY00*
234234
warnings
235235
wave
236236
weakref freddrake, nascheme
@@ -323,14 +323,14 @@ devguide merwok, ezio-melotti, willingc, Mariatta, hugovk,
323323
documentation ezio-melotti, merwok, JulienPalard, willingc, hugovk,
324324
AA-Turner, AlexWaygood*
325325
emoji Mariatta
326-
extension modules encukou, ncoghlan
326+
extension modules encukou, ncoghlan, FFY00
327327
filesystem giampaolo
328-
frozen modules ericsnowcurrently, gvanrossum, kumaraditya303
328+
frozen modules ericsnowcurrently, gvanrossum, kumaraditya303, FFY00
329329
f-strings ericvsmith*
330330
GUI
331331
i18n malemburg, merwok, tomasr8
332-
import machinery brettcannon, ncoghlan, ericsnowcurrently, FFY00
333-
initialization FFY00
332+
import machinery brettcannon, ncoghlan, ericsnowcurrently, FFY00*
333+
initialization FFY00*
334334
io benjaminp, stutzbach^, gpshead
335335
JIT brandtbucher*, savannahostrowski*
336336
locale malemburg
@@ -339,7 +339,7 @@ memory management tim-one, malemburg, Yhg1s, nascheme
339339
memoryview
340340
networking giampaolo, gpshead
341341
object model benjaminp, Yhg1s
342-
packaging tarekziade, malemburg, alexis^, merwok, dstufft, pfmoore, emmatyping
342+
packaging tarekziade, malemburg, alexis^, merwok, dstufft, pfmoore, emmatyping, FFY00
343343
pattern matching brandtbucher*
344344
PEG parser gvanrossum, pablogsal, lysnikolaou
345345
performance vstinner, serhiy-storchaka*, 1st1, rhettinger, markshannon,
@@ -348,7 +348,7 @@ pip ncoghlan, dstufft, pfmoore, Marcus.Smith^, pradyunsg
348348
release management tarekziade, malemburg, benjaminp, warsaw,
349349
gvanrossum, anthonybaxter^, merwok, ned-deily,
350350
birkenfeld, JulienPalard, hugovk
351-
runtime lifecycle ericsnowcurrently, kumaraditya303, zooba, ZeroIntensity, nascheme
351+
runtime lifecycle ericsnowcurrently, kumaraditya303, zooba, ZeroIntensity, nascheme, FFY00
352352
str.format ericvsmith*
353353
subinterpreters ericsnowcurrently, kumaraditya303, ZeroIntensity*
354354
symbol table JelleZijlstra, carljm

0 commit comments

Comments
 (0)