Skip to content

Commit 5286408

Browse files
StanFromIrelandmiss-islington
authored andcommitted
Docs: Standardize documentation authors (GH-148102)
(cherry picked from commit 75be902) Co-authored-by: Stan Ulbrych <stan@python.org>
1 parent 3530d32 commit 5286408

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
@@ -72,6 +72,7 @@
7272
# General substitutions.
7373
project = 'Python'
7474
copyright = "2001 Python Software Foundation"
75+
_doc_authors = 'Python documentation authors'
7576

7677
# We look for the Include/patchlevel.h file in the current Python source tree
7778
# and replace the values accordingly.
@@ -364,69 +365,74 @@
364365

365366
# Grouping the document tree into LaTeX files. List of tuples
366367
# (source start file, target name, title, author, document class [howto/manual]).
367-
_stdauthor = 'The Python development team'
368368
latex_documents = [
369-
('c-api/index', 'c-api.tex', 'The Python/C API', _stdauthor, 'manual'),
369+
('c-api/index', 'c-api.tex', 'The Python/C API', _doc_authors, 'manual'),
370370
(
371371
'extending/index',
372372
'extending.tex',
373373
'Extending and Embedding Python',
374-
_stdauthor,
374+
_doc_authors,
375375
'manual',
376376
),
377377
(
378378
'installing/index',
379379
'installing.tex',
380380
'Installing Python Modules',
381-
_stdauthor,
381+
_doc_authors,
382382
'manual',
383383
),
384384
(
385385
'library/index',
386386
'library.tex',
387387
'The Python Library Reference',
388-
_stdauthor,
388+
_doc_authors,
389389
'manual',
390390
),
391391
(
392392
'reference/index',
393393
'reference.tex',
394394
'The Python Language Reference',
395-
_stdauthor,
395+
_doc_authors,
396396
'manual',
397397
),
398398
(
399399
'tutorial/index',
400400
'tutorial.tex',
401401
'Python Tutorial',
402-
_stdauthor,
402+
_doc_authors,
403403
'manual',
404404
),
405405
(
406406
'using/index',
407407
'using.tex',
408408
'Python Setup and Usage',
409-
_stdauthor,
409+
_doc_authors,
410410
'manual',
411411
),
412412
(
413413
'faq/index',
414414
'faq.tex',
415415
'Python Frequently Asked Questions',
416-
_stdauthor,
416+
_doc_authors,
417417
'manual',
418418
),
419419
(
420420
'whatsnew/' + version,
421421
'whatsnew.tex',
422422
'What\'s New in Python',
423-
'A. M. Kuchling',
423+
_doc_authors,
424424
'howto',
425425
),
426426
]
427427
# Collect all HOWTOs individually
428428
latex_documents.extend(
429-
('howto/' + fn[:-4], 'howto-' + fn[:-4] + '.tex', '', _stdauthor, 'howto')
429+
(
430+
'howto/' + fn[:-4],
431+
'howto-' + fn[:-4] + '.tex',
432+
'',
433+
_doc_authors,
434+
'howto',
435+
)
430436
for fn in os.listdir('howto')
431437
if fn.endswith('.rst') and fn != 'index.rst'
432438
)
@@ -437,7 +443,7 @@
437443
# Options for Epub output
438444
# -----------------------
439445

440-
epub_author = 'Python Documentation Authors'
446+
epub_author = _doc_authors
441447
epub_publisher = 'Python Software Foundation'
442448
epub_exclude_files = ('index.xhtml', 'download.xhtml')
443449

0 commit comments

Comments
 (0)