|
72 | 72 | # General substitutions. |
73 | 73 | project = 'Python' |
74 | 74 | copyright = "2001 Python Software Foundation" |
| 75 | +_doc_authors = 'Python documentation authors' |
75 | 76 |
|
76 | 77 | # We look for the Include/patchlevel.h file in the current Python source tree |
77 | 78 | # and replace the values accordingly. |
|
364 | 365 |
|
365 | 366 | # Grouping the document tree into LaTeX files. List of tuples |
366 | 367 | # (source start file, target name, title, author, document class [howto/manual]). |
367 | | -_stdauthor = 'The Python development team' |
368 | 368 | 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'), |
370 | 370 | ( |
371 | 371 | 'extending/index', |
372 | 372 | 'extending.tex', |
373 | 373 | 'Extending and Embedding Python', |
374 | | - _stdauthor, |
| 374 | + _doc_authors, |
375 | 375 | 'manual', |
376 | 376 | ), |
377 | 377 | ( |
378 | 378 | 'installing/index', |
379 | 379 | 'installing.tex', |
380 | 380 | 'Installing Python Modules', |
381 | | - _stdauthor, |
| 381 | + _doc_authors, |
382 | 382 | 'manual', |
383 | 383 | ), |
384 | 384 | ( |
385 | 385 | 'library/index', |
386 | 386 | 'library.tex', |
387 | 387 | 'The Python Library Reference', |
388 | | - _stdauthor, |
| 388 | + _doc_authors, |
389 | 389 | 'manual', |
390 | 390 | ), |
391 | 391 | ( |
392 | 392 | 'reference/index', |
393 | 393 | 'reference.tex', |
394 | 394 | 'The Python Language Reference', |
395 | | - _stdauthor, |
| 395 | + _doc_authors, |
396 | 396 | 'manual', |
397 | 397 | ), |
398 | 398 | ( |
399 | 399 | 'tutorial/index', |
400 | 400 | 'tutorial.tex', |
401 | 401 | 'Python Tutorial', |
402 | | - _stdauthor, |
| 402 | + _doc_authors, |
403 | 403 | 'manual', |
404 | 404 | ), |
405 | 405 | ( |
406 | 406 | 'using/index', |
407 | 407 | 'using.tex', |
408 | 408 | 'Python Setup and Usage', |
409 | | - _stdauthor, |
| 409 | + _doc_authors, |
410 | 410 | 'manual', |
411 | 411 | ), |
412 | 412 | ( |
413 | 413 | 'faq/index', |
414 | 414 | 'faq.tex', |
415 | 415 | 'Python Frequently Asked Questions', |
416 | | - _stdauthor, |
| 416 | + _doc_authors, |
417 | 417 | 'manual', |
418 | 418 | ), |
419 | 419 | ( |
420 | 420 | 'whatsnew/' + version, |
421 | 421 | 'whatsnew.tex', |
422 | 422 | 'What\'s New in Python', |
423 | | - 'A. M. Kuchling', |
| 423 | + _doc_authors, |
424 | 424 | 'howto', |
425 | 425 | ), |
426 | 426 | ] |
427 | 427 | # Collect all HOWTOs individually |
428 | 428 | 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 | + ) |
430 | 436 | for fn in os.listdir('howto') |
431 | 437 | if fn.endswith('.rst') and fn != 'index.rst' |
432 | 438 | ) |
|
437 | 443 | # Options for Epub output |
438 | 444 | # ----------------------- |
439 | 445 |
|
440 | | -epub_author = 'Python Documentation Authors' |
| 446 | +epub_author = _doc_authors |
441 | 447 | epub_publisher = 'Python Software Foundation' |
442 | 448 | epub_exclude_files = ('index.xhtml', 'download.xhtml') |
443 | 449 |
|
|
0 commit comments