Skip to content

Commit 0b1f2c0

Browse files
adding config
Signed-off-by: Deepak Raj <54245038+codePerfectPlus@users.noreply.github.com>
1 parent b881db5 commit 0b1f2c0

1 file changed

Lines changed: 25 additions & 10 deletions

File tree

docs/conf.py

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,41 @@
33

44
project = 'Random Profile Generator'
55
description = 'A random profile generator for testing purposes.'
6-
copyright = '2022, Deeapk Raj'
76
author = 'Deeapk Raj'
87
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"
917

1018
extensions = [
1119
'sphinx.ext.autosectionlabel'
1220
]
1321

14-
releases_github_path = "Py-Contributors/RandomProfileGenerator"
15-
1622
autosectionlabel_prefix_document = True
1723

18-
templates_path = ['_templates']
19-
source_suffix = ".rst"
20-
master_doc = "index"
21-
year = datetime.now().year
22-
copyright = "{} Deepak Raj".format(year)
23-
2424
html_theme = 'sphinx_rtd_theme' # 'pydata_sphinx_theme' 'alabaster'
2525

26-
html_static_path = ['_static']
2726
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.venv']
2827
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

Comments
 (0)