Skip to content

Commit

Permalink
FIX: update Read the Docs config
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 16, 2024
1 parent f29783b commit 7001d85
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ repos:
hooks:
- id: check-dev-files
args:
- --github-pages
- --no-cd
- --no-pypi
- --repo-name=gluex-nstar
Expand Down
10 changes: 0 additions & 10 deletions .readthedocs.yaml

This file was deleted.

22 changes: 22 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
build:
os: "ubuntu-24.04"
tools:
python: "3.12"
commands:
- |-
export PIXI_HOME=$READTHEDOCS_VIRTUALENV_PATH
curl -fsSL https://pixi.sh/install.sh | bash
pixi global install uv
- pixi install
- pixi run docnb
- pixi run "rm -rf $READTHEDOCS_OUTPUT/html && cp -r docs/_build/html $READTHEDOCS_OUTPUT/html"
- |-
export UV_LINK_MODE=copy
uv run \
--extra doc \
--locked \
--with tox \
tox -e doc
mkdir -p $READTHEDOCS_OUTPUT
mv docs/_build/html $READTHEDOCS_OUTPUT

0 comments on commit 7001d85

Please sign in to comment.