diff --git a/_config.yml b/_config.yml index 86706fb..2273e8b 100644 --- a/_config.yml +++ b/_config.yml @@ -73,6 +73,9 @@ search: # Supports true or false (default) button: false +# For copy button on code +enable_copy_code_button: true + # To disable support for mermaid diagrams (https://mermaid-js.github.io/mermaid/), # comment out the `mermaid` and `version` keys below # By default, consuming the theme as a gem leaves mermaid disabled; it is opt-in diff --git a/_includes/icons/code_copy.html b/_includes/icons/code_copy.html new file mode 100644 index 0000000..02f5068 --- /dev/null +++ b/_includes/icons/code_copy.html @@ -0,0 +1,15 @@ + + + Copy + + + + + + + Copied + + + + + \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index f80f52d..7ac9269 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -40,6 +40,7 @@ layout: table_wrappers {% include icons/external_link.html %} + {% include icons/code_copy.html %}