|
3 | 3 | import logging
|
4 | 4 | import os
|
5 | 5 | import sys
|
| 6 | +from datetime import datetime |
6 | 7 |
|
7 | 8 | # For the full list of built-in configuration values, see the documentation:
|
8 | 9 | # https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
30 | 31 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
31 | 32 |
|
32 | 33 | project = "python-libs"
|
33 |
| -copyright = "2025, Citrix Inc." |
| 34 | +copyright = "2025, Citrix Inc." # pylint: disable=redefined-builtin |
34 | 35 | author = "Citrix Inc."
|
35 |
| -from datetime import datetime |
36 |
| - |
37 | 36 | release = datetime.now().strftime("%Y.%m.%d-%H%M")
|
38 | 37 |
|
| 38 | +# -- Options for HTML output ------------------------------------------------- |
| 39 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html |
| 40 | +# Set the favicon and logo to XenServer branding. |
| 41 | +html_favicon = "https://xenserver.com/content/dam/xenserver/images/favicon-32x32.png" |
| 42 | +html_logo = "https://www.xenserver.com/content/dam/xenserver/images/xenserver-full-color-rgb.svg" |
| 43 | + |
| 44 | +# -- MyST-Parser configuration ----------------------------------------------- |
| 45 | +# https://github.com/mgaitan/sphinxcontrib-mermaid: |
| 46 | +# Enables GitHub-style mermaid code blocks in markdown files. |
| 47 | +# See https://myst-parser.readthedocs.io/en/latest/syntax/optional.html |
| 48 | +# This allows to use mermaid code blocks in markdown files like this: |
| 49 | +# ```mermaid |
| 50 | +# graph TD; |
| 51 | +# A-->B; |
| 52 | +# ``` |
| 53 | +myst_fence_as_directive = ["mermaid"] |
| 54 | + |
39 | 55 | # -- General configuration ---------------------------------------------------
|
40 | 56 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
41 | 57 |
|
42 | 58 | extensions = [
|
43 | 59 | "sphinx.ext.autodoc",
|
44 | 60 | "sphinx.ext.viewcode",
|
45 | 61 | "sphinx.ext.githubpages",
|
| 62 | + "sphinxcontrib.mermaid", |
46 | 63 | "myst_parser",
|
47 | 64 | ]
|
48 | 65 |
|
|
0 commit comments