diff --git a/.github/workflows/rtd-preview.yml b/.github/workflows/rtd-preview.yml new file mode 100644 index 000000000..b3b76409c --- /dev/null +++ b/.github/workflows/rtd-preview.yml @@ -0,0 +1,19 @@ +name: Read the Docs PR preview +on: + pull_request_target: + types: + - opened + +permissions: + pull-requests: write + +jobs: + documentation-links: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: readthedocs/actions/preview@v1 + with: + project-slug: "ep-website-demo" + single-version: "true" + message-template: "🖼️ Preview available 🖼️ : {docs-pr-index-url}" diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 000000000..17be91956 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,25 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the OS, Python version, and other tools you might need +build: + os: ubuntu-24.04 + tools: + # Specify the language and version your project requires, + # by uncommenting one of the following tools. + # + # python: "3.13" + # ruby: "3.3" + nodejs: "22" + # rust: "1.82" + # golang: "1.23" + + commands: + - npm install -g pnpm@latest-10 + - make install + - make build PREVIEW=true + - mkdir -p $READTHEDOCS_OUTPUT/html + - cd dist && cp -r * $READTHEDOCS_OUTPUT/html