readthedocs-build-optimization
3
总安装量
3
周安装量
#61787
全站排名
安装命令
npx skills add https://github.com/readthedocs/skills --skill readthedocs-build-optimization
Agent 安装分布
opencode
3
gemini-cli
3
claude-code
3
github-copilot
3
codex
3
kimi-cli
3
Skill 文档
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.yamland documentation dependency files.- Documentation toolchain (Sphinx or MkDocs) and whether
sphinx.ext.autodocis in use. - Output formats currently enabled.
Workflow
- Confirm symptoms and scope.
- Apply low-risk optimizations first.
- Optimize the build environment when conda is involved.
- Reduce API documentation overhead if autodoc drives dependency load.
- 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
mambaovercondato 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
- Read
references/slow-builds-troubleshooting.mdbefore making recommendations. - Docs: https://docs.readthedocs.com/platform/stable/guides/build-using-too-many-resources.html
- Docs: https://docs.readthedocs.com/platform/stable/builds.html#build-resources
- Keep suggestions aligned with the troubleshooting guide and propose the smallest change set first.