-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathconf.py
More file actions
40 lines (33 loc) · 994 Bytes
/
conf.py
File metadata and controls
40 lines (33 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import os
from importlib.metadata import version as get_version, PackageNotFoundError
try:
__version__ = get_version("daft-pgm")
except PackageNotFoundError:
__version__ = "unknown"
# Support canonical URL
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")
if os.environ.get("READTHEDOCS", "") == "True":
html_context = {"READTHEDOCS": True}
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"myst_nb",
]
templates_path = ["_templates"]
master_doc = "index"
project = "Daft"
copyright = "2012-2021, Daft Developers"
version = __version__
release = __version__
exclude_patterns = ["_build"]
pygments_style = "sphinx"
html_theme = "daft"
html_theme_options = {
"tagline": "Beautifully rendered probabilistic graphical models."
}
html_theme_path = ["_themes"]
html_static_path = ["_static"]
html_sidebars = {"**": ["relations.html", "searchbox.html"]}
html_show_sourcelink = False
htmlhelp_basename = "Daftdoc"