diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000000..70d4c5250a --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,16 @@ +version: 2 + +sphinx: + configuration: docs/source/conf.py + +python: + version: 3.7 + install: + - requirements: requirements-dev.txt + - method: pip + path: . + + +submodules: + include: all + recursive: true diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index aab5e1bb1f..6c47a4751f 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -6,6 +6,7 @@ + `theano.printing.pydotprint` is now hotfixed upon import (see [#4594](https://github.com/pymc-devs/pymc3/pull/4594)). + Fix bug in the computation of the log pseudolikelihood values (SMC-ABC). (see [#4672](https://github.com/pymc-devs/pymc3/pull/4672)). + Fix `LKJCorr.random` method to work with `pm.sample_prior_predictive`. (see [#4780](https://github.com/pymc-devs/pymc3/pull/4780)) ++ Enable documentation generation via ReadTheDocs for upcoming v3 releases. (see [#4805](https://github.com/pymc-devs/pymc3/pull/4805)). ### New Features + Generalized BART, bounded distributions like Binomial and Poisson can now be used as likelihoods (see [#4675](https://github.com/pymc-devs/pymc3/pull/4675), [#4709](https://github.com/pymc-devs/pymc3/pull/4709) and diff --git a/docs/source/conf.py b/docs/source/conf.py index 9b23a323af..6fc8780e8b 100755 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -15,6 +15,8 @@ import os import sys +from pathlib import Path + import pymc3 # If extensions (or modules to document with autodoc) are in another directory, @@ -330,3 +332,6 @@ def setup(app): app.add_css_file("https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css") app.add_css_file("default.css") + dir_root = Path(__file__).parent + for directory in html_static_path: + os.makedirs(str(dir_root / directory), exist_ok=True) diff --git a/docs/source/index.rst b/docs/source/index.rst index 053e1962f1..205f8ee902 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -44,28 +44,28 @@