From 20c5cea8db1952f9901dfb59b8c07cbe0a882627 Mon Sep 17 00:00:00 2001 From: Don Naro Date: Thu, 10 Aug 2023 18:10:20 +0100 Subject: [PATCH] add RTD config for PR previews --- .readthedocs.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 00000000..4953c800 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,16 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.11" + # Build the Ansible docsite + commands: + - python -m pip install --upgrade --no-cache-dir pip + - python -m pip install --exists-action=w --no-cache-dir -r ./requirements.in -c ./requirements.txt + - python build.py + - mkdir -p _readthedocs/html/ + - cp -r output/* _readthedocs/html/