From f03be9329336639b289b8f425478083c6ecd514a Mon Sep 17 00:00:00 2001 From: Grey Li Date: Mon, 27 Nov 2023 12:55:02 +0800 Subject: [PATCH] Add RTD config file --- .readthedocs.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 19dfdc5..da85a79 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,9 +1,22 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/conf.py + +# We recommend specifying your dependencies to enable reproducible builds: +# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html python: install: - - requirements: docs_requirements.txt - - method: pip - path: . -sphinx: - builder: dirhtml - fail_on_warning: true + - requirements: requirements/docs.txt