tiempo-rs/docs/source/conf.py

35 lines
1.2 KiB
Python
Raw Normal View History

2022-09-17 22:22:22 -05:00
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
2022-09-18 21:55:46 -05:00
from pathlib import Path
from tomlkit import parse
2022-09-20 09:43:43 -05:00
# Make the Cargo.toml file the only source for 'version'
2022-09-18 21:55:46 -05:00
_cargo_toml = Path(__file__).resolve().parent.parent.parent / 'Cargo.toml'
2022-09-17 22:22:22 -05:00
project = 'Tiempo'
copyright = '2022, Categulario'
2022-10-30 23:13:14 -06:00
author = 'Categulario, Perrotuerto'
2022-09-18 21:55:46 -05:00
release = str(parse(open(_cargo_toml).read())['package']['version'])
2022-09-17 22:22:22 -05:00
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = []
templates_path = ['_templates']
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
2022-09-20 09:43:43 -05:00
html_theme = 'furo'
2022-09-17 22:22:22 -05:00
html_static_path = ['_static']
2022-09-25 20:32:43 -05:00
html_logo = "_static/logo.png"