diff --git a/book.json b/book.json index 63d7fd2..b282b57 100644 --- a/book.json +++ b/book.json @@ -26,7 +26,8 @@ "search", "search-pro", "disqus", - "page-footer-ex" + "page-footer-ex", + "copy-code-button" ], "pluginsConfig": { "page-footer-ex": { diff --git a/styles/website.css b/styles/website.css index 5646ecc..7a48d53 100644 --- a/styles/website.css +++ b/styles/website.css @@ -16,3 +16,9 @@ li.chapter { .book-body { font-size: 1.5rem !important; } +.copy-code-button { + display: none; +} +pre:hover > .copy-code-button { + display: block; +}