Total Complexity | 0 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | extensions = [ |
||
2 | "sphinx.ext.autodoc", |
||
3 | "sphinx.ext.autosummary", |
||
4 | "sphinx.ext.coverage", |
||
5 | "sphinx.ext.doctest", |
||
6 | "sphinx.ext.extlinks", |
||
7 | "sphinx.ext.ifconfig", |
||
8 | "sphinx.ext.napoleon", |
||
9 | "sphinx.ext.todo", |
||
10 | "sphinx.ext.viewcode", |
||
11 | ] |
||
12 | source_suffix = ".rst" |
||
13 | master_doc = "index" |
||
14 | project = "Nameless" |
||
15 | year = "2019-now" |
||
16 | author = "Ionel Cristian Mărieș" |
||
17 | copyright = f"{year}, {author}" |
||
18 | try: |
||
19 | from pkg_resources import get_distribution |
||
20 | |||
21 | version = release = get_distribution("nameless").version |
||
22 | except Exception: |
||
23 | import traceback |
||
24 | |||
25 | traceback.print_exc() |
||
26 | version = release = "1.0.0" |
||
27 | |||
28 | pygments_style = "trac" |
||
29 | templates_path = ["."] |
||
30 | extlinks = { |
||
31 | "issue": ("https://github.com/ionelmc/python-nameless/issues/%s", "#"), |
||
32 | "pr": ("https://github.com/ionelmc/python-nameless/pull/%s", "PR #"), |
||
33 | } |
||
34 | |||
35 | html_theme_options = { |
||
36 | "githuburl": "https://github.com/ionelmc/python-nameless/", |
||
37 | } |
||
38 | |||
39 | html_use_smartypants = True |
||
40 | html_last_updated_fmt = "%b %d, %Y" |
||
41 | html_split_index = False |
||
42 | html_sidebars = { |
||
43 | "**": ["searchbox.html", "globaltoc.html", "sourcelink.html"], |
||
44 | } |
||
45 | html_short_title = f"{project}-{version}" |
||
46 | |||
47 | napoleon_use_ivar = True |
||
48 | napoleon_use_rtype = False |
||
49 | napoleon_use_param = False |
||
50 |