Skip to content

Commit 3c6e7f3

Browse files
mjhajhariamichaelosthegeOriolAbril
authored
fix link to v3 (#5262)
* fix link to v3 we're using the v3 tag instead of stable for readthedocs (stable tag links to a documentation with missing images etc) * Autofill the version slug Co-authored-by: Oriol Abril <oriol.abril.pla@gmail.com> * Remove spaces * get rid of the button to parse the substitution * fix link rendering * add newline at the end of file Co-authored-by: Michael Osthege <michael.osthege@outlook.com> Co-authored-by: Oriol Abril <oriol.abril.pla@gmail.com>
1 parent 7b4bccd commit 3c6e7f3

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

docs/source/404.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,4 @@ do so we have moved some files around and we have
2828
modified the base url in order to support multi version docs
2929
(you'll see the version switcher at the bottom right of the page).
3030

31-
::::{grid} 3
32-
:::{grid-item}
33-
:::
34-
:::{grid-item}
35-
```{button-link} https://docs.pymc.io/en/stable/
36-
:color: primary
37-
:expand:
38-
39-
Back to stable version documentation
40-
```
41-
:::
42-
:::{grid-item}
43-
:::
44-
::::
31+
Back to {{ '[documentation homepage](https://docs.pymc.io/en/{}/)'.format(version_slug) }}

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@
118118
# myst and panels config
119119
jupyter_execute_notebooks = "off"
120120
myst_enable_extensions = ["colon_fence", "deflist", "dollarmath", "amsmath", "substitution"]
121+
myst_substitutions = {
122+
"version_slug": rtd_version,
123+
}
124+
panels_add_bootstrap_css = False
121125
myst_heading_anchors = None
122126

123127
# The reST default role (used for this markup: `text`) to use for all

0 commit comments

Comments
 (0)