Skip to content

Commit c813d0f

Browse files
OriolAbriltwiecki
andauthored
fix 404 and intersphinx (#360)
* fix 404 and intersphinx * Update examples/404.md Co-authored-by: Thomas Wiecki <[email protected]> * default to stable now that 4.0 is released Co-authored-by: Thomas Wiecki <[email protected]>
1 parent b9fb6e6 commit c813d0f

File tree

3 files changed

+11
-38
lines changed

3 files changed

+11
-38
lines changed

examples/404.md

+5-35
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,9 @@ orphan: true
66

77
**Sorry, we could not find this page**
88

9-
We are working on the next major release for PyMC,
10-
which will come with faster sampling, more flexible
11-
model building, multiple computational backends...
9+
Click on the navigation bar on top of the page to go to the right section
10+
of the default docs, or alternatively:
1211

13-
::::{grid} 3
14-
:::{grid-item}
15-
![old banner](https://raw.githubusercontent.com/pymc-devs/pymc/v3/docs/logos/svg/PyMC3_banner.svg)
16-
:::
17-
:::{grid-item}
18-
:class: text-center
19-
{fas}`arrow-alt-circle-right;fa-5x`
20-
:::
21-
:::{grid-item}
22-
![new banner](https://raw.githubusercontent.com/pymc-devs/pymc/main/docs/logos/svg/PyMC_banner.svg)
23-
:::
24-
::::
25-
26-
...and much better documentation too! However, to
27-
do so we have moved some files around and we have
28-
modified the base url in order to support multi version docs
29-
and better rendering and cross-referencing for notebooks.
30-
31-
::::{grid} 3
32-
:::{grid-item}
33-
:::
34-
:::{grid-item}
35-
```{button-link} https://docs.pymc.io/projects/examples/en/latest/
36-
:color: primary
37-
:expand:
38-
39-
Back to example gallery homepage
40-
```
41-
:::
42-
:::{grid-item}
43-
:::
44-
::::
12+
* Go to the current [PyMC example gallery homepage](https://www.pymc.io/projects/examples/en/latest/)
13+
* Go to the PyMC3 3.x snapshot of the [PyMC example gallery](https://www.pymc.io/projects/examples/en/2022.01.0/)
14+
(also available for each page from the version switcher at the bottom right of the page)

examples/conf.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ def setup(app: Sphinx):
189189
# post_auto_image = 1
190190
# post_auto_excerpt = 2
191191

192+
notfound_urls_prefix = "/projects/examples/en/latest/"
193+
192194
# MyST config
193195
myst_enable_extensions = ["colon_fence", "deflist", "dollarmath", "amsmath", "substitution"]
194196
citation_code = f"""
@@ -251,7 +253,8 @@ def setup(app: Sphinx):
251253
"mpl": ("https://matplotlib.org/", None),
252254
"numpy": ("https://numpy.org/doc/stable/", None),
253255
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
254-
"pymc": ("https://docs.pymc.io/en/latest/", None),
256+
"pymc": ("https://www.pymc.io/projects/docs/en/stable/", None),
257+
"pmx": ("https://www.pymc.io/projects/experimental/en/latest/", None),
255258
"scipy": ("https://docs.scipy.org/doc/scipy/reference/", None),
256259
"xarray": ("http://docs.xarray.dev/en/stable/", None),
257260
}

examples/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
Home <https://www.pymc.io>
77
Examples <gallery>
8-
Learn <https://www.pymc.io/projects/docs/en/latest/learn.html>
9-
API <https://www.pymc.io/projects/docs/en/latest/api.html>
8+
Learn <https://www.pymc.io/projects/docs/en/stable/learn.html>
9+
API <https://www.pymc.io/projects/docs/en/stable/api.html>
1010
Community <https://www.pymc.io/community/index.html>
1111
Contributing <https://www.pymc.io/projects/docs/en/latest/contributing/index.html>
1212
:::

0 commit comments

Comments
 (0)