diff --git a/README.md b/README.md index 15a847715862..ed97b2927c75 100644 --- a/README.md +++ b/README.md @@ -204,6 +204,7 @@ To test the theme, run `bundle exec rake preview` and open your browser at `http - [Gumshoe](https://github.com/cferdinandi/gumshoe) - [jQuery throttle / debounce](http://benalman.com/projects/jquery-throttle-debounce-plugin/) - [Lunr](http://lunrjs.com) +- [Clipboard.js](https://clipboardjs.com) ## License @@ -282,3 +283,7 @@ Pure Liquid Jekyll Table of Contents is distributed under the terms of the [MIT Minimal Mistakes incorporates [Lunr](http://lunrjs.com), Copyright (c) 2018 Oliver Nightingale. Lunr is distributed under the terms of the [MIT License](http://opensource.org/licenses/MIT). + +Minimal Mistakes incorporates [clipboard.js](https://clipboardjs.com/), +Copyright (c) 2021 Zeno Rocha. +Clipboard.js is distributed under the terms of the [MIT License](https://opensource.org/licenses/MIT). diff --git a/_config.yml b/_config.yml index e616455b6ecb..479b9ee27945 100644 --- a/_config.yml +++ b/_config.yml @@ -29,6 +29,7 @@ logo : # path of logo image to display in the masthead, e.g. masthead_title : # overrides the website title displayed in the masthead, use " " for no title # breadcrumbs : false # true, false (default) words_per_minute : 200 +enable_copy_code_button : # true, false (default) copyright : # "copyright" name, defaults to site.title copyright_url : # "copyright" URL, defaults to site.url comments: diff --git a/_includes/head.html b/_includes/head.html index 87bc5e5b123a..45ad0f1a7cb2 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -9,8 +9,11 @@ {%- comment %} https://docs.google.com/presentation/d/1rmxwWa9P6_xHqonmh5ONXRS-jPc5XKbnv99Rjkhe04s/present {% endcomment -%} - diff --git a/_sass/minimal-mistakes/_utilities.scss b/_sass/minimal-mistakes/_utilities.scss index 1c127d3664f5..1b9cd76e0ebb 100644 --- a/_sass/minimal-mistakes/_utilities.scss +++ b/_sass/minimal-mistakes/_utilities.scss @@ -591,3 +591,60 @@ a.reversefootnote { position: static; } } + +/* + Copy
block to clipboard + ========================================================================== */ + +// a