Creating Read the Docs Configuration File
The Read the Docs service requires a configuration file to set for instance Python version or add additional configuration files to the project.
Procedure:
- In the root location of your project, create a
.readthedocs.yamlfile. - Edit the file, paste the configuration provided below, and save the changes.
.readthedocs.yaml
version: 2
build:
os: ubuntu-24.04
tools:
python: "3.13"
python:
install:
- requirements: config/requirements.txt
mkdocs:
configuration: mkdocs.yml
fail_on_warning: false
- This parameter adds additional requirements to the configuration.
- This parameter adds the configuration file for the MkDocs.
For more details on configuring Read the Docs, see the Configuration File section in the Read the Docs documentation.