1
0
mirror of https://github.com/docker/docs.git synced 2026-10-23 18:09:02 +03:00

api: pin Redoc to v2.5.1 to fix blank API reference pages (#26350)

The API reference layout loaded Redoc from the `latest` CDN URL, which
now serves Redoc 3.0.0. That bundle is an ES module that uses
import.meta, so the classic script tag fails with "Cannot use
'import.meta' outside a module" and the Engine, Hub, and Registry API
pages render blank. Pin to the 2.x UMD build.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Usha Mandya
2026-10-14 15:12:06 +01:00
committed by GitHub
parent ab3d738546
commit fca13866d3

View File

@@ -117,6 +117,6 @@
{{ end }}
</article>
</main>
<script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
<script src="https://cdn.redoc.ly/redoc/v2.5.1/bundles/redoc.standalone.js"></script>
</body>
</html>