From 7cda5fa925d529a45ac631777c92ef19cebbaec6 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Wed, 5 Mar 2025 23:09:44 -0500 Subject: [PATCH] ci(gh-pages): preview website for PR builds in RTD (#3709) --- gh-pages-template/.readthedocs.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 gh-pages-template/.readthedocs.yaml diff --git a/gh-pages-template/.readthedocs.yaml b/gh-pages-template/.readthedocs.yaml new file mode 100644 index 00000000..681f205b --- /dev/null +++ b/gh-pages-template/.readthedocs.yaml @@ -0,0 +1,25 @@ +--- +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +version: 2 + +build: + os: ubuntu-24.04 + tools: + ruby: "3.3" + apt_packages: + - 7zip + - jq + jobs: + install: + - | + mkdir -p "./tmp" + branch="master" + base_url="https://raw.githubusercontent.com/LizardByte/LizardByte.github.io" + url="${base_url}/refs/heads/${branch}/scripts/readthedocs_build.sh" + curl -sSL -o "./tmp/readthedocs_build.sh" "${url}" + chmod +x "./tmp/readthedocs_build.sh" + build: + html: + - "./tmp/readthedocs_build.sh"