skills/readthedocs/skills/readthedocs-build-optimization

readthedocs-build-optimization

SKILL.md

Read the Docs Build Optimization

Overview

Diagnose and speed up slow Read the Docs builds by reducing output formats and dependencies, choosing faster build tooling, and lowering API documentation overhead. Prefer minimal, low-risk configuration changes first.

Required inputs

  • Build URL or raw logs (timing, memory errors, or timeouts).
  • .readthedocs.yaml and documentation dependency files.
  • Documentation toolchain (Sphinx or MkDocs) and whether sphinx.ext.autodoc is in use.
  • Output formats currently enabled.

Workflow

  1. Confirm symptoms and scope.
  2. Apply low-risk optimizations first.
  3. Optimize the build environment when conda is involved.
  4. Reduce API documentation overhead if autodoc drives dependency load.
  5. Escalate by requesting more resources only after optimization changes.

Optimization checklist

  • Reduce output formats, especially htmlzip, before deeper changes.
  • Separate documentation dependencies from application dependencies.
  • Prefer mamba over conda to speed up solves and reduce memory usage.
  • Consider static API documentation tooling for heavy autodoc builds.
  • If changes are insufficient, guide the user to request more resources.

References

Weekly Installs
4
GitHub Stars
5
First Seen
Feb 20, 2026
Installed on
opencode4
gemini-cli4
claude-code4
github-copilot4
codex4
kimi-cli4