From 68db665f2577acb346430fe235d3494d8826962f Mon Sep 17 00:00:00 2001 From: AdamRamberg Date: Mon, 7 Oct 2019 00:18:21 +0200 Subject: [PATCH] Add copy button to code blocks --- website/siteConfig.js | 8 +++- website/static/css/code-block-buttons.css | 39 +++++++++++++++++++ website/static/js/code-block-buttons.js | 47 +++++++++++++++++++++++ 3 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 website/static/css/code-block-buttons.css create mode 100644 website/static/js/code-block-buttons.js diff --git a/website/siteConfig.js b/website/siteConfig.js index 706f8ca7..52b68b85 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -60,10 +60,16 @@ const siteConfig = { highlight: { // Highlight.js theme to use for syntax highlighting in code blocks. theme: 'default', + defaultLang: 'cs', }, // Add custom scripts here that would be placed in