|
3 | 3 |
|
4 | 4 | project = 'Random Profile Generator' |
5 | 5 | description = 'A random profile generator for testing purposes.' |
6 | | -copyright = '2022, Deeapk Raj' |
7 | 6 | author = 'Deeapk Raj' |
8 | 7 | release = '0.2.3' |
| 8 | +year = datetime.now().year |
| 9 | +copyright = "{} Deepak Raj".format(year) |
| 10 | +source_suffix = ".rst" |
| 11 | +source_encoding = "utf-8-sig" |
| 12 | + |
| 13 | +master_doc = "index" |
| 14 | +templates_path = ['_templates'] |
| 15 | +html_static_path = ['_static'] |
| 16 | +releases_github_path = "Py-Contributors/RandomProfileGenerator" |
9 | 17 |
|
10 | 18 | extensions = [ |
11 | 19 | 'sphinx.ext.autosectionlabel' |
12 | 20 | ] |
13 | 21 |
|
14 | | -releases_github_path = "Py-Contributors/RandomProfileGenerator" |
15 | | - |
16 | 22 | autosectionlabel_prefix_document = True |
17 | 23 |
|
18 | | -templates_path = ['_templates'] |
19 | | -source_suffix = ".rst" |
20 | | -master_doc = "index" |
21 | | -year = datetime.now().year |
22 | | -copyright = "{} Deepak Raj".format(year) |
23 | | - |
24 | 24 | html_theme = 'sphinx_rtd_theme' # 'pydata_sphinx_theme' 'alabaster' |
25 | 25 |
|
26 | | -html_static_path = ['_static'] |
27 | 26 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.venv'] |
28 | 27 | html_sidebars = {'**': ['globaltoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html']} |
| 28 | + |
| 29 | +rst_epilog = """ |
| 30 | +.. |project| replace:: Random Profile Generator |
| 31 | +.. |copyright| replace:: Copyright © {} Deepak Raj |
| 32 | +.. | community | replace:: `Py-Contributors <https://github.com/py-contributors/>`_ |
| 33 | +""".format(year) |
| 34 | + |
| 35 | +# epub settings |
| 36 | +epub_basename = project |
| 37 | +epub_theme = 'epub' |
| 38 | +epub_description = description |
| 39 | +epub_author = author |
| 40 | +epub_contributor = 'Py-Contributors' |
| 41 | +epub_language = 'en' |
| 42 | +epub_publisher = 'Py-Contributors' |
| 43 | +epub_copyright = copyright |
0 commit comments