diff --git a/.gitea/workflows/rtd_deploy.yml b/.gitea/workflows/rtd_deploy.yml new file mode 100644 index 0000000..e01bb6a --- /dev/null +++ b/.gitea/workflows/rtd_deploy.yml @@ -0,0 +1,21 @@ +name: Read the Docs Deploy Trigger + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + trigger-rtd-webhook: + runs-on: ubuntu-latest + steps: + - name: Trigger Read the Docs webhook + env: + RTD_TOKEN: ${{ secrets.RTD_TOKEN }} + run: | + curl --fail --show-error --silent \ + -X POST \ + -d "branches=${{ github.ref_name }}" \ + -d "token=${RTD_TOKEN}" \ + "https://readthedocs.org/api/v2/webhook/sls-csaxs/270162/" diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 183912c..b3d945e 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -8,15 +8,14 @@ version: 2 build: os: ubuntu-20.04 tools: - python: "3.10" + python: "3.12" jobs: pre_install: - pip install . - # Build documentation in the docs/ directory with Sphinx sphinx: - configuration: docs/conf.py + configuration: docs/conf.py # If using Sphinx, optionally build your docs in additional formats such as PDF # formats: @@ -24,6 +23,5 @@ sphinx: # Optionally declare the Python requirements required to build your docs python: - install: - - requirements: docs/requirements.txt - + install: + - requirements: docs/requirements.txt