Skip to content

Commit 182276f

Browse files
committed
try alternative pymc objct backtracing
1 parent 5173b61 commit 182276f

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

examples/conf.py

+4-18
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
{"name": "API", "url": "https://docs.pymc.io/en/stable/api.html"},
7070
],
7171
"page_sidebar_items": ["postcard", "page-toc", "edit-this-page"],
72+
"google_analytics_id": "G-6KPRBTE6WV",
7273
}
7374
version = os.environ.get("READTHEDOCS_VERSION", "")
7475
version = version if "." in version else "main"
@@ -99,12 +100,11 @@
99100
# "sidebar-nav-bs.html",
100101
"postcard_categories.html",
101102
"tagcloud.html",
102-
"sidebar-ethical-ads.html",
103103
],
104104
}
105105

106106
# ablog config
107-
blog_baseurl = "https://examples.pymc.io"
107+
blog_baseurl = "https://docs.pymc.io/projects/examples/en/latest/"
108108
blog_title = "PyMC Examples"
109109
blog_path = "blog"
110110
blog_authors = {
@@ -145,22 +145,8 @@
145145
bibtex_reference_style = "author_year"
146146

147147
# OpenGraph config
148-
# ogp_site_url = "https://predictablynoisy.com"
149-
# ogp_image = "https://predictablynoisy.com/_static/profile-bw.png"
148+
# use default readthedocs integration aka no config here
150149

151-
# codeautolink config
152-
from IPython.core.inputtransformer2 import TransformerManager
153-
154-
155-
def ipython_cell_transform(source):
156-
out = TransformerManager().transform_cell(source)
157-
return source, out
158-
159-
160-
# codeautolink
161-
codeautolink_custom_blocks = {
162-
"ipython3": ipython_cell_transform,
163-
}
164150
codeautolink_autodoc_inject = False
165151
codeautolink_concat_default = True
166152

@@ -172,7 +158,7 @@ def ipython_cell_transform(source):
172158
"mpl": ("https://matplotlib.org/", None),
173159
"numpy": ("https://numpy.org/doc/stable/", None),
174160
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
175-
"pymc": ("https://docs.pymc.io/en/stable/", None),
161+
"pymc": ("https://docs.pymc.io/en/latest/", None),
176162
"scipy": ("https://docs.scipy.org/doc/scipy/reference/", None),
177163
"xarray": ("http://xarray.pydata.org/en/stable/", None),
178164
}

examples/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,5 @@ has tags in its metadata they are listed on the right sidebar after the {fas}`ta
7676
:hidden:
7777

7878
blog
79+
object_index
7980
:::

examples/object_index.rst

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
================
2+
Object use index
3+
================
4+
5+
-------------
6+
Distributions
7+
-------------
8+
9+
Continuous
10+
**********
11+
12+
.. autolink-examples:: pymc.Normal
13+
:type: class
14+
15+
Discrete
16+
********
17+
18+
.. autolink-examples:: pymc.Poisson
19+
:type: class

0 commit comments

Comments
 (0)