diff --git a/Features.md b/Features.md index ca4ead3..e66f5d6 100644 --- a/Features.md +++ b/Features.md @@ -16,6 +16,7 @@ - [BreadCrumb Navigation](#breadcrumb-navigation) - [Edit Link for Posts](#edit-link-for-posts) - [Other Posts suggestion below a post](#other-posts-suggestion-below-a-post) +- [Code Copy Button](#code-copy-button) - [Multiple Authors](#multiple-authors) - [Comments](#comments) - [AccessKeys](#accesskeys) @@ -404,6 +405,21 @@ params: --- +### Code Copy Button + +Adds a `copy` button in code block to copy the code it contains + +- Enabled by default. + +To disable use + +```yml +params: + disableCodeCopy: true +``` + +--- + ### Multiple Authors To Use multiple authors for a post, in post-variables: diff --git a/Variables.md b/Variables.md index 58e2f87..618114b 100644 --- a/Variables.md +++ b/Variables.md @@ -22,6 +22,7 @@ | `disableThemeToggle` | boolean | true \| false | To disable theme toggle icon shown besides label | | `disableSpecial1stPost` | boolean | true \| false | To disable no-card special appearance of 1st post | | `disableScrollToTop` | boolean | true \| false | To disable ScrollToTop button | +| `disableCodeCopy` | boolean | true \| false | To disable Code Copy button | | `hideMeta` | boolean | true \| false | To Hide meta elements : date, read-time, author and available-translations for page | | `hideSummary` | boolean | true \| false | To Hide summary being shown in list pages | | `showtoc` | boolean | true \| false | To show/hide Table of Contents |