From 5fe40705013caa3e5ebfe60aa45646d1d0d120e6 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 9 May 2024 11:52:26 -0400 Subject: [PATCH] docs: Fix copying code blocks (#11617) This PR fixes copying code blocks in the docs. The problem was that some of the elements we removed from the base mdBook template were causing errors in the script, which prevented the right event listeners from being registered for the copy button. To remedy this, the elements have been restored, but are using `display: none` so that they don't appear in the UI. Resolves #11592. Release Notes: - N/A --- docs/theme/index.hbs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/theme/index.hbs b/docs/theme/index.hbs index 698516374a..0c8e7626f4 100644 --- a/docs/theme/index.hbs +++ b/docs/theme/index.hbs @@ -91,6 +91,9 @@ + @@ -125,6 +128,16 @@ + + {{#if search_enabled}}