fix: strip trailing 'Copy code' from clipboard when copying code blocks (#788)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Musa 2026-02-27 13:11:26 -08:00 committed by GitHub
parent d9404afa4d
commit 15c6c62df0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View file

@ -116,6 +116,7 @@ html_theme_options = asdict(theme_options)
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
html_css_files = ["css/custom.css"]
html_js_files = ["js/fix-copy.js"]
pygments_style = "lovelace"
pygments_style_dark = "github-dark"