Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add optional dependencies for building docs
  • Loading branch information
PGijsbers committed Nov 2, 2020
commit 76bef2536ae46121079229e4578600e64a518ff2
3 changes: 1 addition & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ jobs:
python-version: 3.8
- name: Install dependencies
run: |
pip install -e .[examples,examples_unix]
pip install sphinx-gallery sphinx_bootstrap_theme numpydoc
pip install -e .[docs,examples,examples_unix]
- name: Make docs
run: |
cd doc
Expand Down
9 changes: 2 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,9 @@ The resulting HTML files will be placed in ``build/html/`` and are viewable in
a web browser. See the ``README`` file in the ``doc/`` directory for more
information.

For building the documentation, you will need
[sphinx](http://sphinx.pocoo.org/),
[sphinx-bootstrap-theme](https://ryan-roemer.github.io/sphinx-bootstrap-theme/),
[sphinx-gallery](https://sphinx-gallery.github.io/)
and
[numpydoc](https://numpydoc.readthedocs.io/en/latest/).
For building the documentation, you will need to install a few additional dependencies:
```bash
$ pip install sphinx sphinx-bootstrap-theme sphinx-gallery numpydoc
$ pip install -e .[docs]
```
When dependencies are installed, run
```bash
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
"ipykernel",
"seaborn",
],
"examples_unix": ["fanova",],
"examples_unix": ["fanova"],
"docs": ["sphinx", "sphinx-gallery", "sphinx_bootstrap_theme", "numpydoc"],
},
test_suite="pytest",
classifiers=[
Expand Down