You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a70e8c4
Browse filesBrowse the repository at this point in the historyBrowse files
docs: add copy buttons to markdown code blocks (#33861)
* docs: add copy buttons to markdown code blocks
Add copy functionality to all code blocks in documentation markdown content.
Previously, only example viewer code and module import snippets had copy
buttons, but regular markdown code blocks (like configuration examples)
were missing this feature.
* docs: render code block copy buttons through markup
Emit the copy button as part of the code block markup in the markdown renderer
and handle clicks with a single delegated listener in the `DocViewer`, instead
of attaching a component to every code block through a portal. This removes
the `CodeBlockCopyButton` component.
0 commit comments