Skip to content

Commit 279e9d6

Browse files
committed
#53 experiment to see if autodoc will work in remove build of docs
1 parent 5a16693 commit 279e9d6

File tree

1 file changed

+26
-15
lines changed

1 file changed

+26
-15
lines changed

docs/conf.py

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414

1515
sys.path.insert(0, os.path.abspath("../"))
1616

17+
# manually import package dependencies in an attempt to make autodoc work
18+
import arviz
19+
import matplotlib
20+
import numpy
21+
import pandas
22+
import patsy
23+
import pymc
24+
import scipy
25+
import seaborn
26+
import sklearn
27+
import xarray
1728

1829
# -- Project information -----------------------------------------------------
1930
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
@@ -73,18 +84,18 @@
7384
"conf_py_path": "/docs/", # Path in the checkout to the docs root
7485
}
7586

76-
# autodoc_mock_imports
77-
# This avoids autodoc breaking when it can't find packages imported in the code.
78-
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_mock_imports
79-
autodoc_mock_imports = [
80-
"arviz",
81-
"matplotlib",
82-
"numpy",
83-
"pandas",
84-
"patsy",
85-
"pymc",
86-
"scipy",
87-
"seaborn",
88-
"sklearn",
89-
"xarray",
90-
]
87+
# # autodoc_mock_imports
88+
# # This avoids autodoc breaking when it can't find packages imported in the code.
89+
# # https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_mock_imports
90+
# autodoc_mock_imports = [
91+
# "arviz",
92+
# "matplotlib",
93+
# "numpy",
94+
# "pandas",
95+
# "patsy",
96+
# "pymc",
97+
# "scipy",
98+
# "seaborn",
99+
# "sklearn",
100+
# "xarray",
101+
# ]

0 commit comments

Comments
 (0)