Skip to content

Commit 580271d

Browse files
Docs: Standardize documentation authors
1 parent 289f19a commit 580271d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Doc/conf.py

Lines changed: 12 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,68 @@
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+
('howto/' + fn[:-4], 'howto-' + fn[:-4] + '.tex', '', doc_authors, 'howto')
427427
for fn in os.listdir('howto')
428428
if fn.endswith('.rst') and fn != 'index.rst'
429429
)
@@ -435,7 +435,7 @@
435435
# -----------------------
436436

437437
epub_author = 'Python Documentation Authors'
438-
epub_publisher = 'Python Software Foundation'
438+
epub_publisher = doc_authors
439439
epub_exclude_files = (
440440
'index.xhtml',
441441
'download.xhtml',

0 commit comments

Comments
 (0)