Cette page est affichée en anglais. Une traduction française est en cours.
ConfigsJul 3, 2026·3 min de lecture

Read the Docs — Documentation Hosting for Open Source Projects

Read the Docs builds and hosts documentation from your repository automatically, supporting Sphinx, MkDocs, and versioned docs out of the box.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Read the Docs Overview
Commande d'installation directe
npx -y tokrepo@latest install 04fbb4ce-767a-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

Read the Docs is a documentation hosting platform that builds docs from your version control repository on every commit. It supports Sphinx and MkDocs, handles versioning by branch or tag, and serves the result with full-text search and PDF generation.

What Read the Docs Does

  • Automatically builds documentation on every push via webhook integration
  • Hosts multiple versions of docs corresponding to branches and tags
  • Provides full-text search across all documentation pages
  • Generates PDF, EPUB, and zipped HTML downloads from the same source
  • Supports custom domains with automatic HTTPS provisioning

Architecture Overview

Read the Docs is a Django web application backed by PostgreSQL and Elasticsearch. When a webhook fires, a Celery task clones the repository, installs dependencies in an isolated environment, runs the doc build tool (Sphinx or MkDocs), and uploads the output to storage. Nginx serves the built docs with version-based URL routing. The platform can be self-hosted via Docker Compose.

Self-Hosting & Configuration

  • Self-host with the open-source codebase and Docker Compose
  • Configure builds via .readthedocs.yaml in your repo root
  • Set Python version, OS image, and build commands in the config file
  • Enable pull request builds to preview documentation changes before merging
  • Configure notifications for build failures via email or webhook

Key Features

  • Automatic versioning that maps git branches and tags to doc versions
  • Pull request previews that build docs from PR branches for review
  • Environment variable support for injecting secrets during builds
  • Traffic analytics showing page views and search queries
  • Ad-supported free hosting for open-source projects

Comparison with Similar Tools

  • GitHub Pages — static hosting only, no automatic versioning or search
  • Netlify — general static site hosting, requires custom versioning setup
  • GitBook — visual editor and hosted platform, limited self-hosting
  • Docusaurus — a doc site generator, not a hosting platform; needs separate deployment

FAQ

Q: Is Read the Docs free for open-source projects? A: Yes. Open-source projects hosted on public repositories get free documentation hosting with community ads.

Q: Can I use it with MkDocs? A: Yes. Set the mkdocs key in .readthedocs.yaml and point it to your mkdocs.yml configuration.

Q: How does versioning work? A: Each branch or tag becomes a separate version. Readers can switch versions via a dropdown on the documentation site.

Q: Can I self-host Read the Docs? A: Yes. The platform is open source under the MIT license and includes Docker-based deployment instructions.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires