mirror of
https://github.com/docker/docs.git
synced 2026-10-28 07:15:09 +03:00
e44889768c697e9968b372bfba59bde790ead80e
## Summary **Problem:** Mermaid diagrams briefly showed their raw source before the SVG appeared, stayed on the wrong palette after a light/dark theme toggle, and could leave Mermaid's error graphic in the page when a diagram failed to parse. **Why this change:** Diagrams are used more often in the docs, so the renderer needs to match the site theme and avoid flashing source text while SVGs load. **Solution:** Replace `mermaid.run()` with a controlled `mermaid.render()` loop that caches each block's source, skips stale async results, re-renders when the `<html>` dark class changes, suppresses Mermaid's default error SVG, and hides `pre.mermaid` until an SVG is present (or a render error sets `data-error` so the source can still be inspected). @netlify /get-started/docker-concepts/the-basics/what-is-a-registry/ Preview: https://deploy-preview-26304--docsdocker.netlify.app/get-started/docker-concepts/the-basics/what-is-a-registry/ Example of pre-fix behavior: https://deploy-preview-26283--docsdocker.netlify.app/accounts/organization/ Generated by Cursor --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Docs @ Docker
Welcome to the Docker Documentation repository. This is the source for the Docker Docs Website.
Feel free to open pull requests or issues. Our docs are completely open source, and we deeply appreciate contributions from the Docker community!
Provide feedback
We’d love to hear your feedback! To submit feedback:
- Click New issue on the docs repository, or
- Click Request changes in the right column of every page on docs.docker.com, or
- Click Give feedback on every page in the docs.
To get community support, use the Docker Community Slack. Personalized support is available through the Docker Pro, Team, and Business subscriptions. See Docker Pricing for details.
If you have an idea for a new feature or behavior change in a specific aspect of Docker or have found a product bug, file an issue in the project's repository.
Contribute to Docker docs
We welcome contributions! To get started:
- CONTRIBUTING.md - Contribution workflow and setup
- STYLE.md - Writing style and content guidelines
- COMPONENTS.md - Component and shortcode usage
Copyright and license
Copyright 2013-2026 Docker, Inc., released under the Apache 2.0 license.
Description
Languages
Markdown
95.1%
HTML
2.3%
CSS
0.7%
Go
0.7%
JavaScript
0.7%
Other
0.2%