Skip to content

Commit

Permalink
fix readthedocs build
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan committed Jun 23, 2024
1 parent 277e921 commit f7568a9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ build:
post_system_dependencies:
- env | sort
pre_create_environment:
- asdf plugin add pipx
- asdf install pipx 1.6.0
- asdf global pipx 1.6.0
- asdf plugin add pdm
- asdf install pdm 2.15.4
- asdf global pdm 2.15.4
- PIPX_BIN_DIR=$READTHEDOCS_VIRTUALENV_PATH/bin make prerequisites
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH make dev-doc
post_build:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH make doc-mypy doc-coverage
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH make mypy doc-coverage
os: ubuntu-22.04
tools:
python: '3.12'
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"toctree",
"typer",
"unshallow",
"viewcode"
"viewcode",
"VIRTUALENV"
],
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
Expand Down
6 changes: 5 additions & 1 deletion template/.readthedocs.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ build:
post_system_dependencies:
- env | sort
pre_create_environment:
- asdf plugin add pipx
- asdf install pipx 1.6.0
- asdf global pipx 1.6.0
- asdf plugin add pdm
- asdf install pdm 2.15.4
- asdf global pdm 2.15.4
- PIPX_BIN_DIR=$READTHEDOCS_VIRTUALENV_PATH/bin make prerequisites
post_install:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH make dev-doc
post_build:
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH make doc-mypy doc-coverage
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH make mypy doc-coverage
os: ubuntu-22.04
tools:
python: '{{ default_py }}'
Expand Down
3 changes: 2 additions & 1 deletion template/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"toctree",
"typer",
"unshallow",
"viewcode"
"viewcode",
"VIRTUALENV"
],
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
Expand Down

0 comments on commit f7568a9

Please sign in to comment.