|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# -- Path setup ------------------------------------------------------------- |
| 3 | +import logging |
| 4 | +import os |
| 5 | +import sys |
| 6 | + |
| 7 | +# For the full list of built-in configuration values, see the documentation: |
| 8 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 9 | + |
| 10 | +# Add project root to sys.path for autodoc to find xcp modules and it allows |
| 11 | +# to {include} the toplevel README.md files from their wrapper files here. |
| 12 | +sys.path.insert(0, os.path.abspath("../..")) |
| 13 | + |
| 14 | +# Add stubs directory to sys.path for stubs (xcp/bootloader.py needs a branding.py) |
| 15 | +sys.path.insert(0, os.path.abspath("../../stubs")) |
| 16 | + |
| 17 | +# |
| 18 | +# To support Markdown-based documentation, Sphinx can use MyST-Parser. |
| 19 | +# MyST-Parser is a Docutils bridge to markdown-it-py, a Python package |
| 20 | +# for parsing the CommonMark Markdown flavor. |
| 21 | +# See https://myst-parser.readthedocs.io/en/latest/ for details. |
| 22 | +# Set the log level of markdown-it log categories to INFO to disable DEBUG |
| 23 | +# logging and prevent flooding the logs with many 1000s of DEBUG messages: |
| 24 | +# |
| 25 | +logging.getLogger("markdown_it.rules_block").setLevel(logging.INFO) |
| 26 | +logging.getLogger("markdown_it.rules_inline").setLevel(logging.INFO) |
| 27 | +logging.getLogger("markdown_it").setLevel(logging.INFO) |
| 28 | + |
| 29 | +# -- Project information ----------------------------------------------------- |
| 30 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 31 | + |
| 32 | +project = "python-libs" |
| 33 | +copyright = "2025, Citrix Inc." |
| 34 | +author = "Citrix Inc." |
| 35 | +from datetime import datetime |
| 36 | + |
| 37 | +release = datetime.now().strftime("%Y.%m.%d-%H%M") |
| 38 | + |
| 39 | +# -- General configuration --------------------------------------------------- |
| 40 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 41 | + |
| 42 | +extensions = [ |
| 43 | + "sphinx.ext.autodoc", |
| 44 | + "sphinx.ext.viewcode", |
| 45 | + "sphinx.ext.githubpages", |
| 46 | + "myst_parser", |
| 47 | +] |
| 48 | + |
| 49 | +templates_path = ["_templates"] |
| 50 | +exclude_patterns = [] |
| 51 | + |
| 52 | + |
| 53 | +# -- Options for HTML output ------------------------------------------------- |
| 54 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 55 | + |
| 56 | +html_theme = "furo" |
| 57 | +html_static_path = ["_static"] |
0 commit comments