from __future__ import annotations
import datetime
import os
project = "UID"
author = "Infocyph"
year_now = datetime.date.today().strftime("%Y")
copyright = f"2024-{year_now}"
version = os.environ.get("READTHEDOCS_VERSION", "latest")
release = version
language = "en"
root_doc = "index"
extensions = [
"myst_parser",
"sphinx.ext.todo",
"sphinx.ext.autosectionlabel",
"sphinx.ext.intersphinx",
"sphinx_copybutton",
"sphinx_design",
"sphinxcontrib.phpdomain",
]
myst_enable_extensions = [
"colon_fence",
"deflist",
"attrs_block",
"attrs_inline",
"tasklist",
"fieldlist",
]
myst_heading_anchors = 3
autosectionlabel_prefix_document = True
todo_include_todos = True
intersphinx_mapping = {
"php": ("https://www.php.net/manual/en/", None),
}
html_theme = "sphinx_book_theme"
html_theme_options = {
"repository_url": "https://github.com/infocyph/UID",
"repository_branch": "main",
"path_to_docs": "docs",
"use_repository_button": True,
"use_issues_button": True,
"use_download_button": True,
"home_page_in_toc": True,
"show_toc_level": 2,
}
templates_path = ["_templates"]
html_static_path = ["_static"]
html_css_files = ["theme.css"]
html_title = f"UID - {version} Documentation"
html_show_sourcelink = True
html_show_sphinx = False
html_last_updated_fmt = "%Y-%m-%d"
|