1
0
Fork 0

Add .readthedocs.yaml

It is now mandatory
https://blog.readthedocs.com/migrate-configuration-v2/

Also fixes empty app library in rtd.

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
This commit is contained in:
Francesco Gazzetta 2023-09-27 12:40:17 +00:00 committed by Daniel Thompson
parent 43eb3f3980
commit b7d772db8e
3 changed files with 22 additions and 0 deletions

20
.readthedocs.yaml Normal file
View file

@ -0,0 +1,20 @@
# 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"
jobs:
pre_build:
# Ensure appregistry is generated
- ./tools/configure_wasp_apps.py wasp.toml
python:
install:
- requirements: docs/requirements.txt
sphinx:
configuration: docs/conf.py

1
docs/requirements.txt Normal file
View file

@ -0,0 +1 @@
tomli

1
tools/configure_wasp_apps.py Normal file → Executable file
View file

@ -1,3 +1,4 @@
#!/usr/bin/env python3
"""Configure the wasp distribution based on the provided wasp.toml config
This script generates the following files and directories