Skip to content

Commit

Permalink
Don't use experimental readthedocs build.commands config (#4606)
Browse files Browse the repository at this point in the history
* dont use experimental readthedocs build.commands config

Signed-off-by: Niels Bantilan <[email protected]>

* use env var

Signed-off-by: Niels Bantilan <[email protected]>

* install readthedocs sphinx ext

Signed-off-by: Niels Bantilan <[email protected]>

* update

Signed-off-by: Niels Bantilan <[email protected]>

* update monodocs environment yml

Signed-off-by: Niels Bantilan <[email protected]>

---------

Signed-off-by: Niels Bantilan <[email protected]>
  • Loading branch information
cosmicBboy authored Dec 18, 2023
1 parent 398e5cb commit 14915dc
Show file tree
Hide file tree
Showing 4 changed files with 1,331 additions and 596 deletions.
17 changes: 9 additions & 8 deletions docs/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-22.9"
commands:
- cat monodocs-environment.lock.yaml
- mamba install -c conda-forge conda-lock
- conda-lock install -p /home/docs/monodocs-env monodocs-environment.lock.yaml
- conda info
- conda env list
- cat docs/conf.py
- cd docs && /home/docs/monodocs-env/bin/python -m sphinx -T -E -b html -d docs/_build/doctrees -D language=en . $READTHEDOCS_OUTPUT/html
jobs:
post_install:
- conda-lock install --name $READTHEDOCS_VERSION monodocs-environment.lock.yaml
- conda info
- conda env list
- conda list

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/conf.py

conda:
environment: docs/build-environment.yaml
6 changes: 6 additions & 0 deletions docs/build-environment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: latest
channels:
- conda-forge
dependencies:
- python=3.10
- conda-lock
Loading

0 comments on commit 14915dc

Please sign in to comment.