Skip to content

Commit 0a84be2

Browse files
committed
modify docs build
1 parent aabc6e8 commit 0a84be2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.readthedocs.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@ build:
77
tools: {python: "3.8"}
88
jobs:
99
pre_create_environment:
10-
- asdf install python 3.8.5
11-
- asdf global python 3.8.5
12-
- python -m pip install --upgrade --no-cache-dir virtualenv
13-
14-
- asdf plugin add poetry
15-
- asdf install poetry latest
16-
- asdf global poetry latest
10+
- pip install poetry
1711
- poetry config virtualenvs.create false
12+
1813
post_install:
19-
- poetry install --with dev
14+
- poetry install --with docs
2015

2116
# Build documentation in the docs/ directory with Sphinx
2217
sphinx:

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ tqdm = "*"
1919
[tool.poetry.dev-dependencies]
2020
pytest = "^7.1.3"
2121
pytest-cov = "^4.0.0"
22+
23+
[tool.poetry.group.docs]
24+
optional = true
25+
26+
[tool.poetry.group.docs.dependencies]
2227
sphinx = "*"
2328
myst-nb = "*"
2429
sphinx-autoapi = "*"

0 commit comments

Comments
 (0)