Skip to content

Commit 2978b40

Browse files
Build docs in simplified environment (#6537)
* Build docs in simplified environment * Fix docs build * Remove private API section from docs
1 parent c5e20ff commit 2978b40

File tree

16 files changed

+39
-54
lines changed

16 files changed

+39
-54
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ python:
99
path: .
1010

1111
conda:
12-
environment: "conda-envs/environment-dev.yml"
12+
environment: "conda-envs/environment-docs.yml"
1313

1414
build:
1515
os: "ubuntu-20.04"

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ clean:
5555
rm -rf $(SOURCEDIR)/api/generated
5656
rm -rf $(SOURCEDIR)/api/**/generated
5757
rm -rf $(SOURCEDIR)/api/**/classmethods
58-
rm -rf $(SOURCEDIR)/contributing/private_api/generated
59-
rm -rf $(SOURCEDIR)/contributing/private_api/**/generated
60-
rm -rf $(SOURCEDIR)/contributing/private_api/**/classmethods
6158
rm -rf docs/jupyter_execute
6259

6360
html:

conda-envs/environment-docs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# "dev" conda envs are to be used by devs in setting their local environments
2+
name: pymc-docs
3+
channels:
4+
- conda-forge
5+
- defaults
6+
dependencies:
7+
# Base dependencies
8+
- arviz>=0.13.0
9+
- cachetools>=4.2.1
10+
- cloudpickle
11+
- fastprogress>=0.2.0
12+
- numpy>=1.15.0
13+
- pandas>=0.24.0
14+
- pip
15+
- pytensor=2.9.1
16+
- python-graphviz
17+
- scipy>=1.4.1
18+
- typing-extensions>=3.7.4
19+
# Extra dependencies for docs build
20+
- ipython>=7.16
21+
- jax
22+
- jupyter-sphinx
23+
- myst-nb
24+
- numpydoc
25+
- pre-commit>=2.8.0
26+
- sphinx-copybutton
27+
- sphinx-design
28+
- sphinx-notfound-page
29+
- sphinx>=1.5
30+
- sphinxext-rediraffe
31+
- watermark
32+
- sphinx-remove-toctrees
33+
- pip:
34+
- git+https://github.com/pymc-devs/pymc-sphinx-theme
35+
- numdifftools>=0.9.40

docs/source/api/backends.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,5 @@ Internal structures
1818
:toctree: generated/
1919

2020
NDArray
21-
point_list_to_multitrace
2221
base.BaseTrace
2322
base.MultiTrace

docs/source/api/data.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ Data
1212
Data
1313
GeneratorAdapter
1414
Minibatch
15-
align_minibatches

docs/source/api/distributions/simulator.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@ Simulator
66
.. autosummary::
77
:toctree: generated
88

9-
SimulatorRV
109
Simulator
11-
KullbackLiebler

docs/source/api/distributions/timeseries.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Timeseries
66
.. autosummary::
77
:toctree: generated
88

9-
AR1
109
AR
1110
GaussianRandomWalk
1211
GARCH11

docs/source/api/distributions/transforms.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ Transform instances are the entities that should be used in the
1616
simplex
1717
logodds
1818
log_exp_m1
19-
ordered_univariate
20-
ordered_multivariate
2119
log
2220
sum_to_1
2321
circular

docs/source/api/math.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Functions exposed in pymc.math
4848
where
4949
and_
5050
or_
51-
abs_
51+
abs
5252
exp
5353
log
5454
cos

docs/source/api/pytensorf.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@ PyTensor utils
2121
join_nonshared_inputs
2222
make_shared_replacements
2323
generator
24-
set_at_rng
25-
at_rng
26-
pandas_to_array
24+
convert_observed_data

docs/source/api/samplers.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ This submodule contains functions for MCMC and forward sampling.
1515
sample_posterior_predictive_w
1616
sampling.jax.sample_blackjax_nuts
1717
sampling.jax.sample_numpyro_nuts
18-
iter_sample
1918
init_nuts
2019
draw
2120

docs/source/api/vi.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Variational Inference
99

1010
ADVI
1111
ASVGD
12-
NFVI
1312
SVGD
1413
FullRankADVI
1514
ImplicitGradient
@@ -26,7 +25,6 @@ Approximations
2625
Empirical
2726
FullRank
2827
MeanField
29-
NormalizingFlow
3028
sample_approx
3129

3230
OPVI

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
#
126126
# This is also used if you do content translation via gettext catalogs.
127127
# Usually you set "language" from the command line for these cases.
128-
language = None
128+
language = "en"
129129

130130
# configure notfound extension to not add any prefix to the urls
131131
notfound_urls_prefix = "/projects/docs/en/latest/"

docs/source/contributing/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ review_pr_pymc_examples
101101
:maxdepth: 1
102102
:caption: Reference content
103103

104-
private_api/index
105104
python_style
106105
jupyter_style
107106
pr_checklist

docs/source/contributing/private_api/index.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/source/contributing/private_api/tests.rst

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)