Skip to content

Commit

Permalink
fix copy-button svg link error
Browse files Browse the repository at this point in the history
  • Loading branch information
mli authored Mar 19, 2021
1 parent f2298a4 commit cbc0e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion d2lbook/sphinx_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def setup(app):
const clipboardButton = id =>
`<a class="copybtn o-tooltip--left" data-tooltip="${messages[locale]['copy']}" data-clipboard-target="#${id}">
<img src="https://gitcdn.xyz/repo/choldgraf/sphinx-copybutton/master/sphinx_copybutton/_static/copy-button.svg" alt="${messages[locale]['copy_to_clipboard']}">
<img src="https://raw.githubusercontent.com/choldgraf/sphinx-copybutton/master/sphinx_copybutton/_static/copy-button.svg" alt="${messages[locale]['copy_to_clipboard']}">
</a>`
codeCell.insertAdjacentHTML('afterend', clipboardButton(id))
})
Expand Down

0 comments on commit cbc0e90

Please sign in to comment.