From dcb030a95bfa261bb8c585a1777b421aab1d799b Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 10 Apr 2021 12:15:02 +0530 Subject: [PATCH] update docs for #345 --- Features.md | 16 ++++++++++++++++ Variables.md | 1 + 2 files changed, 17 insertions(+) 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 |