Configs2026年7月3日·1 分钟阅读

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.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Read the Docs Overview
直接安装命令
npx -y tokrepo@latest install 04fbb4ce-767a-11f1-9bc6-00163e2b0d79 --target codex

先 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

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产