Skip to content

Commit 212a201

Browse files
authored
sphinx maintenance (#255)
1 parent f0b04ff commit 212a201

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

examples/404.md

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
orphan: true
3+
---
4+
5+
# Page not found
6+
7+
**Sorry, we could not find this page**
8+
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...
12+
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+
::::

examples/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"sphinxext.opengraph",
2020
"sphinx_copybutton",
2121
"sphinxcontrib.bibtex",
22-
# "sphinx_codeautolink",
22+
"sphinx_codeautolink",
23+
"notfound.extension",
2324
]
2425

2526
# List of patterns, relative to source directory, that match files and

requirements-docs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ sphinxcontrib-bibtex
77
ablog
88
sphinxext-opengraph
99
sphinx-codeautolink
10+
sphinx-notfound-page

0 commit comments

Comments
 (0)