From e4c253370543aa7aae2269ee64c35cf35f36689b Mon Sep 17 00:00:00 2001 From: Shardul D Date: Tue, 12 May 2026 16:09:00 +0530 Subject: [PATCH] Your commit message here --- docs/conf.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index ad122276..d37167f4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -271,6 +271,15 @@ "sphinxcontrib.mermaid", ] +# Configure sphinx-copybutton (auto-enabled by canonical_sphinx) to strip +# the "$ " shell prompt from copied content. In code blocks that contain +# prompts, only the prompted lines (commands) are copied; output lines are +# skipped. Code blocks without any prompts (e.g. JSON output) are unaffected +# and copy verbatim. +copybutton_prompt_text = r"\$ " +copybutton_prompt_is_regexp = True +copybutton_line_continuation_character = "\\" + # Excludes files or directories from processing exclude_patterns = [