Skip to content

Commit 75be902

Browse files
Docs: Standardize documentation authors (#148102)
1 parent 21fb9dc commit 75be902

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
@@ -73,6 +73,7 @@
7373
# General substitutions.
7474
project = 'Python'
7575
copyright = "2001 Python Software Foundation"
76+
_doc_authors = 'Python documentation authors'
7677

7778
# We look for the Include/patchlevel.h file in the current Python source tree
7879
# and replace the values accordingly.
@@ -361,69 +362,74 @@
361362

362363
# Grouping the document tree into LaTeX files. List of tuples
363364
# (source start file, target name, title, author, document class [howto/manual]).
364-
_stdauthor = 'The Python development team'
365365
latex_documents = [
366-
('c-api/index', 'c-api.tex', 'The Python/C API', _stdauthor, 'manual'),
366+
('c-api/index', 'c-api.tex', 'The Python/C API', _doc_authors, 'manual'),
367367
(
368368
'extending/index',
369369
'extending.tex',
370370
'Extending and Embedding Python',
371-
_stdauthor,
371+
_doc_authors,
372372
'manual',
373373
),
374374
(
375375
'installing/index',
376376
'installing.tex',
377377
'Installing Python Modules',
378-
_stdauthor,
378+
_doc_authors,
379379
'manual',
380380
),
381381
(
382382
'library/index',
383383
'library.tex',
384384
'The Python Library Reference',
385-
_stdauthor,
385+
_doc_authors,
386386
'manual',
387387
),
388388
(
389389
'reference/index',
390390
'reference.tex',
391391
'The Python Language Reference',
392-
_stdauthor,
392+
_doc_authors,
393393
'manual',
394394
),
395395
(
396396
'tutorial/index',
397397
'tutorial.tex',
398398
'Python Tutorial',
399-
_stdauthor,
399+
_doc_authors,
400400
'manual',
401401
),
402402
(
403403
'using/index',
404404
'using.tex',
405405
'Python Setup and Usage',
406-
_stdauthor,
406+
_doc_authors,
407407
'manual',
408408
),
409409
(
410410
'faq/index',
411411
'faq.tex',
412412
'Python Frequently Asked Questions',
413-
_stdauthor,
413+
_doc_authors,
414414
'manual',
415415
),
416416
(
417417
'whatsnew/' + version,
418418
'whatsnew.tex',
419419
'What\'s New in Python',
420-
'A. M. Kuchling',
420+
_doc_authors,
421421
'howto',
422422
),
423423
]
424424
# Collect all HOWTOs individually
425425
latex_documents.extend(
426-
('howto/' + fn[:-4], 'howto-' + fn[:-4] + '.tex', '', _stdauthor, 'howto')
426+
(
427+
'howto/' + fn[:-4],
428+
'howto-' + fn[:-4] + '.tex',
429+
'',
430+
_doc_authors,
431+
'howto',
432+
)
427433
for fn in os.listdir('howto')
428434
if fn.endswith('.rst') and fn != 'index.rst'
429435
)
@@ -434,7 +440,7 @@
434440
# Options for Epub output
435441
# -----------------------
436442

437-
epub_author = 'Python Documentation Authors'
443+
epub_author = _doc_authors
438444
epub_publisher = 'Python Software Foundation'
439445
epub_exclude_files = (
440446
'index.xhtml',

0 commit comments

Comments
 (0)