conf.py
Go to the documentation of this file.
1 # Copyright 2024 Ekumen, Inc.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 # Configuration file for the Sphinx documentation builder.
16 #
17 # For the full list of built-in configuration values, see the documentation:
18 # https://www.sphinx-doc.org/en/master/usage/configuration.html
19 
20 import subprocess
21 
22 # -- Project information -----------------------------------------------------
23 # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
24 
25 project = "Beluga"
26 copyright = "2022-2024 Ekumen, Inc."
27 author = "Ekumen Research"
28 
29 # -- General configuration ---------------------------------------------------
30 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
31 source_suffix = {
32  ".rst": "restructuredtext",
33  ".md": "markdown",
34 }
35 language = "en"
36 
37 extensions = []
38 extensions = [
39  "myst_parser",
40  "sphinx.ext.mathjax",
41  "sphinx.ext.duration",
42  "sphinx.ext.graphviz",
43  "sphinx_copybutton",
44  "sphinx.ext.inheritance_diagram",
45  "sphinx_design",
46  "sphinx_babel.autodox",
47  "sphinxcontrib.bibtex",
48 ]
49 
50 bibtex_bibfiles = ["references.bib"]
51 
52 myst_enable_extensions = ["colon_fence"]
53 myst_heading_anchors = 4
54 
55 autodox_outdir = "_doxygen/generated"
56 autodox_projects = {"reference": ""}
57 
58 exclude_patterns = ["README.md", "_build", "_doxygen/*.md"]
59 suppress_warnings = ["myst.header"]
60 
61 # -- Options for HTML output -------------------------------------------------
62 # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
63 
64 html_theme = "sphinx_book_theme"
65 html_theme_options = {
66  "show_navbar_depth": 1,
67  "collapse_navbar": True,
68  "collapse_navigation": True,
69  "repository_branch": "main",
70  "repository_url": "https://github.com/Ekumen-OS/beluga",
71  "use_repository_button": True,
72  "use_edit_page_button": False,
73  "home_page_in_toc": True,
74  "logo": {
75  "image_light": "_images/logo_with_name_light.png",
76  "image_dark": "_images/logo_with_name_dark.png",
77  },
78 }
79 html_last_updated_fmt = subprocess.check_output(
80  ["git", "log", "--pretty=format:'%ad, %h'", "-n1"]
81 ).decode("utf-8")
82 html_favicon = "_images/logo_200x200.png"
83 html_css_files = ["custom.css"]
84 html_js_files = ["custom.js"]
85 html_static_path = ["_static"]


beluga
Author(s):
autogenerated on Tue Jul 16 2024 02:59:53