diff --git a/docs/source/_static/logo-no-background.png b/docs/source/_static/logo-no-background.png new file mode 100644 index 0000000..40a08b9 Binary files /dev/null and b/docs/source/_static/logo-no-background.png differ diff --git a/docs/source/_static/logo.ico b/docs/source/_static/logo.ico new file mode 100644 index 0000000..f733466 Binary files /dev/null and b/docs/source/_static/logo.ico differ diff --git a/docs/source/conf.py b/docs/source/conf.py index 9b302c6..47821a3 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -4,14 +4,19 @@ # https://www.sphinx-doc.org/en/master/usage/configuration.html import os import sys +import tomllib # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information + +with open("../../pyproject.toml", "rb") as f: + _META = tomllib.load(f) + project = "django-copyist" copyright = "2024, abondar" author = "abondar" -release = "0.1.0" +release = _META["tool"]["poetry"]["version"] # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration @@ -27,6 +32,8 @@ # nitpicky = True +html_favicon = os.path.join("_static", "logo.ico") +html_logo = os.path.join("_static", "logo-no-background.png") # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output