diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..1c07a25 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,14 @@ +version: 2 +build: + os: ubuntu-20.04 + tools: + python: mambaforge-latest + commands: + - mamba install -c conda-forge -c nodefaults pixi + - pixi run -e docs postinstall + - pixi run -e docs docs + - pixi run -e docs readthedocs +sphinx: + configuration: docs/conf.py +formats: + - pdf diff --git a/pixi.toml b/pixi.toml index 54277e1..942efc2 100644 --- a/pixi.toml +++ b/pixi.toml @@ -37,6 +37,7 @@ sphinx_rtd_theme = "*" sphinxcontrib-apidoc = "*" [feature.docs.tasks] docs = "cd docs && make html" +readthedocs = "rm -rf $READTHEDOCS_OUTPUT/html && cp -r docs/_build/html $READTHEDOCS_OUTPUT/html" [feature.test.dependencies] mypy = "*"