Skip to content

Commit 83b1c4c

Browse files
authored
Merge pull request #484 from jumpstarter-dev/backport-480-to-release-0.6
2 parents 9e52283 + 9c7b909 commit 83b1c4c

File tree

3 files changed

+1547
-1495
lines changed

3 files changed

+1547
-1495
lines changed

docs/source/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"sphinx_click",
3131
"sphinx_substitution_extensions",
3232
"sphinx_multiversion",
33+
"sphinx_copybutton"
3334
]
3435

3536
templates_path = ["_templates"]
@@ -135,3 +136,9 @@ def get_index_url():
135136
"display_lower": True, # Display lower versions at the bottom of the menu
136137
"deploy_url": os.getenv("DEPLOY_URL", "https://docs.jumpstarter.dev"), # Get Netlify URL from environment variable
137138
}
139+
140+
# sphinx-copybutton config
141+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
142+
copybutton_prompt_is_regexp = True
143+
copybutton_only_copy_prompt_lines = True
144+
copybutton_line_continuation_character = "\\"

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ docs = [
4949
"requests>=2.32.3",
5050
"sphinxcontrib-programoutput>=0.18",
5151
"sphinx-multiversion>=0.2.4",
52+
"sphinx-copybutton>=0.5.2",
5253
]
5354
dev = [
5455
"ruff==0.9.2",

0 commit comments

Comments
 (0)