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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user