Skip to content

Commit aec55bc

Browse files
committed
Prep for autodoc, but no implementation yet
1 parent b887a1e commit aec55bc

File tree

2 files changed

+84
-2
lines changed

2 files changed

+84
-2
lines changed

docs/conf.py

+15-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010
# -- General configuration ---------------------------------------------------
1111
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1212

13-
extensions = ["myst_parser", "sphinx_last_updated_by_git", "sphinx_copybutton"]
13+
extensions = [
14+
"myst_parser",
15+
"sphinx_last_updated_by_git",
16+
"sphinx_copybutton",
17+
"sphinx.ext.autodoc",
18+
"sphinx.ext.napoleon",
19+
"sphinx.ext.viewcode",
20+
]
1421

1522
templates_path = ["_templates"]
1623
exclude_patterns = ["build", "Thumbs.db", ".DS_Store"]
@@ -32,3 +39,10 @@
3239

3340
# LaTeX output
3441
latex_engine = "lualatex"
42+
43+
import os
44+
import sys
45+
from pathlib import Path
46+
47+
root = Path(os.getenv("ROOT", "../sim/tb"))
48+
sys.path.insert(0, str(root / "sim" / "tb"))

0 commit comments

Comments
 (0)