diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0290912..cb3ee2a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,7 @@ repos: hooks: - id: check-dev-files args: + - --github-pages - --no-cd - --no-pypi - --repo-name=gluex-nstar diff --git a/.readthedocs.yaml b/.readthedocs.yaml deleted file mode 100644 index c8e09ae..0000000 --- a/.readthedocs.yaml +++ /dev/null @@ -1,10 +0,0 @@ -version: "2" -build: - os: "ubuntu-22.04" - tools: - python: mambaforge-latest - commands: - - mamba install -c conda-forge -c nodefaults pixi - - pixi install - - pixi run docnb - - pixi run "rm -rf $READTHEDOCS_OUTPUT/html && cp -r docs/_build/html $READTHEDOCS_OUTPUT/html" diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000..361a809 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,19 @@ +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 + - |- + 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 diff --git a/docs/conf.py b/docs/conf.py index 762ef46..b68c758 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,7 +10,6 @@ exclude_patterns = [ "_build", ".DS_Store", - ".pixi", ".virtual_documents", "**.ipynb_checkpoints", "Thumbs.db",