sphinxcontrib-redoc
ReDoc powered OpenAPI (fka Swagger) spec renderer for Sphinx
What it is and what it does
sphinxcontrib-redoc is a Sphinx extension that lets you embed OpenAPI specifications directly into your Sphinx documentation, rendering them with ReDoc—a popular, interactive API documentation viewer. Instead of maintaining separate API docs, you point the extension to your OpenAPI JSON or YAML file, and it generates a styled, browsable API reference as part of your main documentation site.
The extension is designed for teams moving to OpenAPI and wanting a unified documentation experience. It has no runtime dependencies beyond Sphinx itself, making it lightweight to add to an existing doc build. However, the project is dormant: the last release was in April 2020, and the repository shows no recent activity. This means it may not work reliably with modern Python versions or current Sphinx releases without troubleshooting.
Use it for:
- Embed an OpenAPI spec into Sphinx docs so API consumers see the full API reference alongside conceptual documentation.
- Migrate from Swagger UI to ReDoc rendering while keeping your documentation in Sphinx.
- Generate interactive API docs from an OpenAPI file without maintaining a separate documentation site.
- Include multiple API specs in a single Sphinx project, each rendered with ReDoc in its own section.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Sphinx extension that embeds OpenAPI specifications rendered with ReDoc directly into Sphinx documentation sites.
No. The package is dormant (last release April 2020, no commits since November 2023) and classifiers suggest it targets Python 3.8 and earlier. Compatibility with modern Python versions and current Sphinx is unverified. If you need to embed OpenAPI specs in Sphinx docs, consider actively maintained alternatives or rendering ReDoc separately and linking to it instead.
Install
sphinxcontrib-redoc on PyPI
pip
pip install sphinxcontrib-redocuv
uv add sphinxcontrib-redocpoetry
poetry add sphinxcontrib-redocInstalling sphinxcontrib-redoc
Before you install
High install friction reported. The package is dormant—last release was 2020-04-17, over 2310 days ago, with no recent commits. Classifiers list Python 2.7 and 3.5–3.8, suggesting it may not be tested or maintained for current Python versions.
License in practice
BSD License (permissive). You may use, modify, and distribute this package freely in commercial and private projects, provided you include the license notice.
Quickstart
pip install sphinxcontrib-redoc
In conf.py:
extensions = ['sphinxcontrib.redoc']
In your .rst file:
.. redoc:: path/to/openapi.json
Requires Sphinx to be installed and configured. Package classifiers indicate Python 2.7 and 3.5–3.8 support, but dormant status means compatibility with modern Python versions is unverified.
Verify before relying
- Whether the package works with Python 3.9, 3.10, 3.11, or later versions despite classifiers listing only up to 3.8.
- Whether ReDoc rendering works correctly with current versions of Sphinx and modern web standards.
- Whether the package has any undisclosed dependencies beyond Sphinx itself.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | dormant — 2,310 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 488,564/month — #6,378 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: sphinxcontrib-redoc-1.6.0.tar.gz
Keywords: sphinx, openapi, swagger, rest, api, renderer, docs, redoc
Tags
More Documentation packages
Docutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
griffeGriffe extracts the complete structure and…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
bidictProvides a bidirectional dictionary (bidict)…
copyleft · top 1,000 on PyPI
sphinxcontrib-openapiSphinx extension that renders OpenAPI (Swagger)…
permissive · top 15,000 on PyPI
swagger-plugin-for-sphinxA Sphinx plugin that embeds interactive Swagger…
permissive · top 5,000 on PyPI
sanic-extSanic Extensions adds OpenAPI documentation,…
permissive · top 15,000 on PyPI
sphinxcontrib-programoutputA Sphinx extension that executes arbitrary…
permissive · top 15,000 on PyPI
aiohttp-swagger3Integrates OpenAPI 3 documentation and request…
permissive · top 15,000 on PyPI
django-rest-swaggerGenerates Swagger UI documentation and OpenAPI…
permissive · top 15,000 on PyPI
sphinxcontrib-videoA Sphinx extension that embeds HTML5 videos…
permissive · top 15,000 on PyPI
drf-yasgGenerates Swagger/OpenAPI 2.0 specifications…
permissive · top 5,000 on PyPI
flask-openapi3-swaggerProvides Swagger UI integration for…
permissive · top 15,000 on PyPI