Skip to content

Commit 73cc62e

Browse files
committed
Attempt to fix RTD build
1 parent c5dff78 commit 73cc62e

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.readthedocs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
2+
version: 2
3+
4+
sphinx:
5+
configuration: docs/conf.py
6+
7+
python:
8+
version: 3.7
9+
pip_install: true
10+
extra_requirements:
11+
- docs

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ sphinx = "^3.0.1"
2525
sphinx-autodoc-typehints = "^1.10.3"
2626
sphinx-rtd-theme = "^0.4.3"
2727

28+
# The docs extra is a temporary hack to build on RTD. See:
29+
# https://github.com/readthedocs/readthedocs.org/issues/4912#issuecomment-489818696
30+
[tool.poetry.extras]
31+
docs = ["sphinx", "sphinx-autodoc-typehints", "sphinx-rtd-theme"]
32+
2833
[build-system]
2934
requires = ["poetry>=0.12"]
3035
build-backend = "poetry.masonry.api"

0 commit comments

Comments
 (0)