readthedocs-write-config

Create and update Read the Docs v2 configuration files for Sphinx or MkDocs builds.

8|4|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/readthedocs/skills --skill readthedocs-write-config
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: readthedocs-write-config
Source: https://github.com/readthedocs/skills/tree/main/skills/readthedocs-write-config
Command: npx skills add https://github.com/readthedocs/skills --skill readthedocs-write-config

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve?

Create and update Read the Docs v2 configuration files for Sphinx or MkDocs builds, ensuring correct keys, formatting, and defaults.

Core Features & Use Cases

  • Generate standard .readthedocs.yaml v2 files for new projects and monorepos.
  • Update existing configurations to add build images/tools, dependencies, formats, and submodules.
  • Validate configurations against Read the Docs v2 guidance and adapt to CI workflows.

Quick Start

Use this skill to generate a ready-to-run Read the Docs v2 configuration for a Sphinx or MkDocs project.

Frequently Asked Questions about readthedocs-write-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Read the Docs v2 configuration file for a Sphinx project?

To create a Read the Docs v2 configuration file for Sphinx, define the required keys including version, build.os, build.tools, python.install, and sphinx.configuration. This standardizes your builds, dependencies, and format options across CI pipelines.

What is the correct .readthedocs.yaml syntax for setting up MkDocs builds?

The correct .readthedocs.yaml syntax for MkDocs builds requires specifying version 2, build.os, build.tools, python.install, and the mkdocs.configuration key. This validates your setup and adapts it to CI workflows.

Can I use Read the Docs v2 config for monorepo projects with submodules?

Yes, you can use Read the Docs v2 config for monorepo projects. The configuration supports standardized, versioned builds and includes specific submodules settings to manage dependencies across multi-repo CI pipelines.

How do I update an existing Read the Docs configuration to add formats and build tools?

To update an existing Read the Docs configuration, modify the YAML file to add or adjust build.images, build.tools, and formats keys. This ensures your v2 config aligns with current Read the Docs guidance and CI workflows.

Does Read the Docs v2 config support conda environments?

Yes, Read the Docs v2 config supports conda environments. You can specify conda within the python.install section of your .readthedocs.yaml file to manage complex dependencies for Sphinx or MkDocs builds.

What are the required keys in a v2 .readthedocs.yaml file?

The required keys in a v2 .readthedocs.yaml file are version, build.os, build.tools, python.install, and either sphinx.configuration or mkdocs.configuration. Additional keys like formats and submodules are optional.