Skip to content

Commit abea3e2

Browse files
[3.13] Docs: Standardize documentation authors (GH-148102) (#148106)
(cherry picked from commit 75be902) Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent f5776fd commit abea3e2

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

Doc/conf.py

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
# General substitutions.
7171
project = 'Python'
7272
copyright = "2001-%Y, Python Software Foundation"
73+
_doc_authors = 'Python documentation authors'
7374

7475
# We look for the Include/patchlevel.h file in the current Python source tree
7576
# and replace the values accordingly.
@@ -356,69 +357,74 @@
356357

357358
# Grouping the document tree into LaTeX files. List of tuples
358359
# (source start file, target name, title, author, document class [howto/manual]).
359-
_stdauthor = 'The Python development team'
360360
latex_documents = [
361-
('c-api/index', 'c-api.tex', 'The Python/C API', _stdauthor, 'manual'),
361+
('c-api/index', 'c-api.tex', 'The Python/C API', _doc_authors, 'manual'),
362362
(
363363
'extending/index',
364364
'extending.tex',
365365
'Extending and Embedding Python',
366-
_stdauthor,
366+
_doc_authors,
367367
'manual',
368368
),
369369
(
370370
'installing/index',
371371
'installing.tex',
372372
'Installing Python Modules',
373-
_stdauthor,
373+
_doc_authors,
374374
'manual',
375375
),
376376
(
377377
'library/index',
378378
'library.tex',
379379
'The Python Library Reference',
380-
_stdauthor,
380+
_doc_authors,
381381
'manual',
382382
),
383383
(
384384
'reference/index',
385385
'reference.tex',
386386
'The Python Language Reference',
387-
_stdauthor,
387+
_doc_authors,
388388
'manual',
389389
),
390390
(
391391
'tutorial/index',
392392
'tutorial.tex',
393393
'Python Tutorial',
394-
_stdauthor,
394+
_doc_authors,
395395
'manual',
396396
),
397397
(
398398
'using/index',
399399
'using.tex',
400400
'Python Setup and Usage',
401-
_stdauthor,
401+
_doc_authors,
402402
'manual',
403403
),
404404
(
405405
'faq/index',
406406
'faq.tex',
407407
'Python Frequently Asked Questions',
408-
_stdauthor,
408+
_doc_authors,
409409
'manual',
410410
),
411411
(
412412
'whatsnew/' + version,
413413
'whatsnew.tex',
414414
'What\'s New in Python',
415-
'A. M. Kuchling',
415+
_doc_authors,
416416
'howto',
417417
),
418418
]
419419
# Collect all HOWTOs individually
420420
latex_documents.extend(
421-
('howto/' + fn[:-4], 'howto-' + fn[:-4] + '.tex', '', _stdauthor, 'howto')
421+
(
422+
'howto/' + fn[:-4],
423+
'howto-' + fn[:-4] + '.tex',
424+
'',
425+
_doc_authors,
426+
'howto',
427+
)
422428
for fn in os.listdir('howto')
423429
if fn.endswith('.rst') and fn != 'index.rst'
424430
)
@@ -429,7 +435,7 @@
429435
# Options for Epub output
430436
# -----------------------
431437

432-
epub_author = 'Python Documentation Authors'
438+
epub_author = _doc_authors
433439
epub_publisher = 'Python Software Foundation'
434440
epub_exclude_files = ('index.xhtml', 'download.xhtml')
435441

0 commit comments

Comments
 (0)