| Total Complexity | 0 |
| Total Lines | 56 |
| 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 importlib import metadata |
||
| 20 | |||
| 21 | version = release = metadata.version("nameless") |
||
| 22 | except Exception: |
||
| 23 | import traceback |
||
| 24 | |||
| 25 | traceback.print_exc() |
||
| 26 | version = release = "0.0.0" |
||
| 27 | |||
| 28 | pygments_style = "trac" |
||
| 29 | templates_path = ["."] |
||
| 30 | extlinks = { |
||
| 31 | "issue": ("https://github.com/ionelmc/python-nameless/issues/%s", "#%s"), |
||
| 32 | "pr": ("https://github.com/ionelmc/python-nameless/pull/%s", "PR #%s"), |
||
| 33 | } |
||
| 34 | |||
| 35 | html_theme = "furo" |
||
| 36 | html_theme_options = { |
||
| 37 | "source_repository": "https://github.com/ionelmc/python-nameless/", |
||
| 38 | "source_branch": "main", |
||
| 39 | "source_directory": "docs/", |
||
| 40 | "footer_icons": [ |
||
| 41 | { |
||
| 42 | "url": "https://github.com/ionelmc/python-nameless/", |
||
| 43 | "html": "github.com/ionelmc/python-nameless", |
||
| 44 | }, |
||
| 45 | ], |
||
| 46 | } |
||
| 47 | |||
| 48 | html_use_smartypants = True |
||
| 49 | html_last_updated_fmt = "%b %d, %Y" |
||
| 50 | html_split_index = False |
||
| 51 | html_short_title = f"{project}-{version}" |
||
| 52 | |||
| 53 | napoleon_use_ivar = True |
||
| 54 | napoleon_use_rtype = False |
||
| 55 | napoleon_use_param = False |
||
| 56 |