From 60959d3576dc7f228601195810ab7c0e2e39c561 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 28 Nov 2024 10:53:51 -0300 Subject: [PATCH 1/2] Create .readthedocs.yml --- .readthedocs.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .readthedocs.yml diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 000000000..7d3909c07 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,17 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details +# Project page: https://app.readthedocs.org/projects/pydocs-translation-dashboard/ + +version: 2 + +build: + os: ubuntu-24.04 + tools: + python: "3" + commands: + - asdf plugin add uv + - asdf install uv latest + - asdf global uv latest + - uv run generate.py + - mkdir -p _readthedocs/html + - mv index.html style.css _readthedocs/html From 35ec60ad4e17f81644b89f848a0409674789f440 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Thu, 28 Nov 2024 10:56:50 -0300 Subject: [PATCH 2/2] Create documentation-links.yml --- .github/workflows/documentation-links.yml | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/documentation-links.yml diff --git a/.github/workflows/documentation-links.yml b/.github/workflows/documentation-links.yml new file mode 100644 index 000000000..9454510db --- /dev/null +++ b/.github/workflows/documentation-links.yml @@ -0,0 +1,24 @@ +name: Read the Docs PR preview +# Automatically edits a pull request's descriptions with a link +# to the documentation's preview on Read the Docs. + +on: + pull_request_target: + types: + - opened + +permissions: + pull-requests: write + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + documentation-links: + runs-on: ubuntu-latest + steps: + - uses: readthedocs/actions/preview@v1 + with: + project-slug: "pydocs-translation-dashboard" + single-version: "true"