diff --git a/.gitignore b/.gitignore index 7308b4c19313..b41763166c91 100644 --- a/.gitignore +++ b/.gitignore @@ -166,5 +166,6 @@ use_dev_supervisor.txt awx/ui_next/src awx/ui_next/build -# Docs build -docs/docsite/build/ \ No newline at end of file +# Docs build stuff +docs/docsite/build/ +_readthedocs/ diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 000000000000..0c11aab82f67 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,15 @@ +# 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 + commands: + - pip install --user tox + - python3 -m tox -e docs + - mkdir -p _readthedocs/html/ + - mv docs/docsite/build/html/* _readthedocs/html/ diff --git a/.yamllint b/.yamllint index fdfbfce43af5..a937588cdc26 100644 --- a/.yamllint +++ b/.yamllint @@ -10,6 +10,7 @@ ignore: | tools/docker-compose/_sources # django template files awx/api/templates/instance_install_bundle/** + .readthedocs.yaml extends: default