|
| 1 | +import datetime |
| 2 | +import os |
| 3 | +import sys |
| 4 | +from importlib import metadata |
| 5 | + |
| 6 | +sys.path.insert(0, os.path.abspath("..")) |
| 7 | +sys.path.insert(0, os.path.abspath("../scim_cli")) |
| 8 | + |
| 9 | +# -- General configuration ------------------------------------------------ |
| 10 | + |
| 11 | +extensions = [ |
| 12 | + "sphinx.ext.autodoc", |
| 13 | + "sphinx.ext.autosectionlabel", |
| 14 | + "sphinx.ext.doctest", |
| 15 | + "sphinx.ext.graphviz", |
| 16 | + "sphinx.ext.intersphinx", |
| 17 | + "sphinx.ext.todo", |
| 18 | + "sphinx.ext.viewcode", |
| 19 | + "sphinx_click", |
| 20 | +] |
| 21 | + |
| 22 | +templates_path = ["_templates"] |
| 23 | +master_doc = "index" |
| 24 | +project = "scim-cli" |
| 25 | +year = datetime.datetime.now().strftime("%Y") |
| 26 | +copyright = f"{year}, Yaal Coop" |
| 27 | +author = "Yaal Coop" |
| 28 | + |
| 29 | +version = metadata.version("scim_cli") |
| 30 | +language = "en" |
| 31 | +exclude_patterns = [] |
| 32 | +pygments_style = "sphinx" |
| 33 | +todo_include_todos = True |
| 34 | +toctree_collapse = False |
| 35 | + |
| 36 | +intersphinx_mapping = { |
| 37 | + "python": ("https://docs.python.org/3", None), |
| 38 | +} |
| 39 | + |
| 40 | +# -- Options for HTML output ---------------------------------------------- |
| 41 | + |
| 42 | +html_theme = "shibuya" |
| 43 | +# html_static_path = ["_static"] |
| 44 | +html_baseurl = "https://scim-cli.readthedocs.io" |
| 45 | +html_theme_options = { |
| 46 | + "globaltoc_expand_depth": 3, |
| 47 | + "accent_color": "orange", |
| 48 | + "gitlab_url": "https://codeberg.org/yaal/scim-cli", |
| 49 | + "mastodon_url": "https://toot.aquilenet.fr/@yaal", |
| 50 | + "nav_links": [ |
| 51 | + { |
| 52 | + "title": "SCIM", |
| 53 | + "url": "https://simplecloud.info/", |
| 54 | + }, |
| 55 | + {"title": "PyPI", "url": "https://pypi.org/project/scim_cli"}, |
| 56 | + ], |
| 57 | +} |
| 58 | + |
| 59 | +# -- Options for HTMLHelp output ------------------------------------------ |
| 60 | + |
| 61 | +htmlhelp_basename = "scim_clidoc" |
| 62 | + |
| 63 | + |
| 64 | +# -- Options for LaTeX output --------------------------------------------- |
| 65 | + |
| 66 | +latex_elements = {} |
| 67 | +latex_documents = [ |
| 68 | + (master_doc, "scim_cli.tex", "scim_cli Documentation", "Yaal", "manual") |
| 69 | +] |
| 70 | + |
| 71 | +# -- Options for manual page output --------------------------------------- |
| 72 | + |
| 73 | +man_pages = [(master_doc, "scim_cli", "scim_cli Documentation", [author], 1)] |
| 74 | + |
| 75 | +# -- Options for Texinfo output ------------------------------------------- |
| 76 | + |
| 77 | +texinfo_documents = [ |
| 78 | + ( |
| 79 | + master_doc, |
| 80 | + "scim_cli", |
| 81 | + "scim_cli Documentation", |
| 82 | + author, |
| 83 | + "scim_cli", |
| 84 | + "One line description of project.", |
| 85 | + "Miscellaneous", |
| 86 | + ) |
| 87 | +] |
| 88 | + |
| 89 | +# -- Options for autosectionlabel ----------------------------------------- |
| 90 | + |
| 91 | +autosectionlabel_prefix_document = True |
| 92 | +autosectionlabel_maxdepth = 2 |
0 commit comments