File tree Expand file tree Collapse file tree 9 files changed +73
-37
lines changed Expand file tree Collapse file tree 9 files changed +73
-37
lines changed Original file line number Diff line number Diff line change 3838 hooks :
3939 - id : no-print-statements
4040 files : ^pymc3/
41+ - id : conda-env-sorter
42+ files : ^conda-envs/environment-dev-py.+\.yml$
4143- repo : local
4244 hooks :
4345 - id : check-no-tests-are-ignored
@@ -47,13 +49,6 @@ repos:
4749 language : python
4850 name : Check no tests are ignored
4951 pass_filenames : false
50- - id : conda-env-sort
51- additional_dependencies : [pyyaml]
52- entry : python scripts/sort_conda_envs.py
53- files : ^conda-envs/environment-dev-py37\.yml$
54- language : python
55- name : Sort dependencies in conda envs
56- types : [yaml]
5752 - id : pip-from-conda
5853 additional_dependencies : [pyyaml]
5954 entry : python scripts/generate_pip_deps_from_conda.py
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ dependencies:
1313- libblas=*=*mkl
1414- mkl-service
1515- myst-nb
16- - numpy=1.15
16+ - numpy> =1.15
1717- numpydoc>=0.9
18- - pandas=0.24
18+ - pandas> =0.24
1919- pre-commit>=2.8.0
2020- pydata-sphinx-theme
2121- pytest-cov>=2.5
@@ -25,7 +25,10 @@ dependencies:
2525- recommonmark>=0.4
2626- scipy>1.4.1
2727- sphinx-autobuild>=0.7
28+ - sphinx-notfound-page
2829- sphinx-panels
2930- sphinx>=1.5
3031- typing-extensions
3132- watermark
33+ - pip :
34+ - sphinx-design
Original file line number Diff line number Diff line change @@ -13,10 +13,9 @@ dependencies:
1313- libblas=*=*mkl
1414- mkl-service
1515- myst-nb
16- - nbsphinx>=0.4
1716- numpy>=1.15.0
1817- numpydoc>=0.9
19- - pandas
18+ - pandas>=0.24.0
2019- pre-commit>=2.8.0
2120- pydata-sphinx-theme
2221- pytest-cov>=2.5
@@ -26,7 +25,10 @@ dependencies:
2625- recommonmark>=0.4
2726- scipy>1.4.1
2827- sphinx-autobuild>=0.7
28+ - sphinx-notfound-page
2929- sphinx-panels
3030- sphinx>=1.5
3131- typing-extensions>=3.7.4
3232- watermark
33+ - pip :
34+ - sphinx-design
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ dependencies:
1313- libblas=*=*mkl
1414- mkl-service
1515- myst-nb
16- - nbsphinx>=0.4
1716- numpy>=1.15.0
1817- numpydoc>=0.9
1918- pandas>=0.24.0
@@ -26,7 +25,10 @@ dependencies:
2625- recommonmark>=0.4
2726- scipy>1.4.1
2827- sphinx-autobuild>=0.7
28+ - sphinx-notfound-page
2929- sphinx-panels
3030- sphinx>=1.5
3131- typing-extensions>=3.7.4
3232- watermark
33+ - pip :
34+ - sphinx-design
Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ dependencies:
2424# Extra stuff for dev, testing and docs build
2525- ipython>=7.16
2626- myst-nb
27- - nbsphinx>=0.4
2827- numpydoc>=0.9
2928- pre-commit>=2.8.0
3029- pydata-sphinx-theme
3130- pytest-cov>=2.5
3231- pytest>=3.0
3332- recommonmark>=0.4
3433- sphinx-autobuild>=0.7
34+ - sphinx-notfound-page
3535- sphinx-panels
3636- sphinx>=1.5
3737- watermark
38+ - pip :
39+ - sphinx-design
Original file line number Diff line number Diff line change 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+ (you'll see the version switcher at the bottom right of the page).
30+
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+ ::::
Original file line number Diff line number Diff line change 4949 "sphinx.ext.napoleon" ,
5050 "gallery_generator" ,
5151 "myst_nb" ,
52+ "sphinx_design" ,
5253 "sphinx_panels" ,
54+ "notfound.extension" ,
5355]
5456
5557# Don't auto-generate summary for class members.
8385# The version info for the project you're documenting, acts as replacement for
8486# |version| and |release|, also used in various other places throughout the
8587# built documents.
86- #
87- # The short X.Y version.
88+
8889version = pymc .__version__
90+ if os .environ .get ("READTHEDOCS" , False ):
91+ rtd_version = os .environ .get ("READTHEDOCS_VERSION" , "" )
92+ if "." not in rtd_version and rtd_version .lower () != "stable" :
93+ version = "dev"
8994# The full version, including alpha/beta/rc tags.
9095release = version
9196
96101# Usually you set "language" from the command line for these cases.
97102language = None
98103
104+ # configure notfound extension to not add any prefix to the urls
105+ notfound_urls_prefix = "/en/latest/"
106+
99107# There are two options for replacing |today|: either, you set today to some
100108# non-false value, then it is used:
101109# today = ''
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ fastprogress>=0.2.0
99h5py >= 2.7
1010ipython >= 7.16
1111myst-nb
12- nbsphinx >= 0.4
1312numpy >= 1.15.0
1413numpydoc >= 0.9
1514pandas >= 0.24.0
@@ -20,6 +19,8 @@ pytest>=3.0
2019recommonmark >= 0.4
2120scipy > 1.4.1
2221sphinx-autobuild >= 0.7
22+ sphinx-design
23+ sphinx-notfound-page
2324sphinx-panels
2425sphinx >= 1.5
2526typing-extensions >= 3.7.4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments