Skip to content

Commit cfbfefe

Browse files
committed
Update .readthedocs.yml
1 parent 20aa15d commit cfbfefe

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.readthedocs.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,23 @@ build:
1313
tools:
1414
python: "3.9"
1515
jobs:
16-
pre_install:
17-
- pip install --force-reinstall -v "markdown==3.5.2"
18-
- pip install --force-reinstall -v "mkdocs==1.5.3"
19-
- pip install --force-reinstall -v "pymdown-extensions==10.7.1"
20-
- pip install --force-reinstall -v "paginate==0.5.6"
21-
- pip install --force-reinstall -v "mkdocs-exclude>=1.0.2"
22-
- pip install --force-reinstall -v "mkdocstrings-python==1.8.0"
23-
- pip install --force-reinstall -v "mkdocs-redirects==1.2.1"
24-
- pip install --force-reinstall -v "mkdocs-material==9.5.13"
16+
post_create_environment:
17+
# https://browniebroke.com/blog/specify-docs-dependency-groups-with-poetry-and-read-the-docs/
18+
# Install poetry
19+
- pip install poetry
20+
# Tell poetry to not use a virtual environment
21+
- poetry config virtualenvs.create false
22+
post_install:
23+
# Install dependencies
24+
- poetry install --with docs
2525

2626
# Build documentation for mkdocs
2727
mkdocs:
28-
configuration: mkdocs.yml
28+
configuration: mkdocs.yml
29+
30+
# # Optionally set the version of Python and requirements required to build your docs
31+
# python:
32+
# install:
33+
# - method: pip
34+
# path: .
35+
# - requirements: docs-requirements.txt

0 commit comments

Comments
 (0)