From aaa5bc3b9f9ab719e5e5bb3ccdd862f1ea6082b7 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 6 Feb 2026 15:45:49 +0200 Subject: [PATCH 1/2] Enable copy button for shell sessions and consoles --- python_docs_theme/static/copybutton.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python_docs_theme/static/copybutton.js b/python_docs_theme/static/copybutton.js index e1ad458..643494e 100644 --- a/python_docs_theme/static/copybutton.js +++ b/python_docs_theme/static/copybutton.js @@ -62,6 +62,10 @@ const loadCopyButton = () => { + ".highlight-python3 .highlight," + ".highlight-pycon .highlight," + ".highlight-pycon3 .highlight," + + ".highlight-console .highlight," + + ".highlight-doscon .highlight," + + ".highlight-ps1con .highlight," + + ".highlight-shell-session .highlight," + ".highlight-default .highlight" ) From f97fa8704d84b7e433de72b05db3d7ee35a227d2 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Fri, 6 Feb 2026 19:35:52 +0200 Subject: [PATCH 2/2] Enable copy button for bash and sh --- python_docs_theme/static/copybutton.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python_docs_theme/static/copybutton.js b/python_docs_theme/static/copybutton.js index 643494e..f90eb1e 100644 --- a/python_docs_theme/static/copybutton.js +++ b/python_docs_theme/static/copybutton.js @@ -62,9 +62,11 @@ const loadCopyButton = () => { + ".highlight-python3 .highlight," + ".highlight-pycon .highlight," + ".highlight-pycon3 .highlight," + + ".highlight-bash .highlight," + ".highlight-console .highlight," + ".highlight-doscon .highlight," + ".highlight-ps1con .highlight," + + ".highlight-sh .highlight," + ".highlight-shell-session .highlight," + ".highlight-default .highlight" )