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