| Total Complexity | 0 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import sys |
||
| 2 | import os |
||
| 3 | |||
| 4 | from datetime import datetime |
||
| 5 | |||
| 6 | import alabaster |
||
| 7 | |||
| 8 | sys.path.insert(0, os.path.abspath("..")) |
||
| 9 | |||
| 10 | |||
| 11 | project = "candv" |
||
| 12 | version = "1.4" |
||
| 13 | release = "1.4.0" |
||
| 14 | year = datetime.now().year |
||
| 15 | copyright = f"{year}, Oleksandr Oblovatnyi" |
||
| 16 | |||
| 17 | pygments_style = "sphinx" |
||
| 18 | |||
| 19 | html_theme = "alabaster" |
||
| 20 | html_sidebars = { |
||
| 21 | "**": [ |
||
| 22 | "about.html", |
||
| 23 | "searchbox.html", |
||
| 24 | "navigation.html", |
||
| 25 | ] |
||
| 26 | } |
||
| 27 | html_theme_options = { |
||
| 28 | 'description': "A Python library for creating complex enum-like constants", |
||
| 29 | 'show_related': False, |
||
| 30 | 'show_relbars': True, |
||
| 31 | 'github_user': "oblalex", |
||
| 32 | 'github_repo': "candv", |
||
| 33 | 'github_banner': "true", |
||
| 34 | 'github_button': "true", |
||
| 35 | 'github_count': "true", |
||
| 36 | 'github_type': "star", |
||
| 37 | } |
||
| 38 | html_theme_path = [ |
||
| 39 | alabaster.get_path(), |
||
| 40 | ] |
||
| 41 | |||
| 42 | extensions = [ |
||
| 43 | "sphinx.ext.autodoc", |
||
| 44 | "sphinx.ext.intersphinx", |
||
| 45 | "sphinx.ext.todo", |
||
| 46 | "sphinx.ext.viewcode", |
||
| 47 | ] |
||
| 48 | |||
| 49 | htmlhelp_basename = "candvdoc" |
||
| 50 | templates_path = ["_templates"] |
||
| 51 | exclude_patterns = ["_build"] |
||
| 52 | todo_include_todos = True |
||
| 53 | source_suffix = ".rst" |
||
| 54 | master_doc = "index" |
||
| 55 | |||
| 56 | intersphinx_mapping = { |
||
| 57 | 'https://docs.python.org/3': None, |
||
| 58 | } |
||
| 59 |