Docs: Python: Add copy button to code blocks #119948

Closed
Aaron Carlisle wants to merge 1 commits from Blendify:doc-python-copybutton into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 11 additions and 2 deletions

View File

@ -25,8 +25,15 @@ else:
BLENDER_VERSION_HASH = "Hash Unknown"
BLENDER_VERSION_HASH_HTML_LINK = BLENDER_VERSION_HASH
extensions = ["sphinx.ext.intersphinx"]
intersphinx_mapping = {"blender_manual": ("https://docs.blender.org/manual/en/dev/", None)}
extensions = [
"sphinx.ext.intersphinx",
"sphinx_copybutton",
]
intersphinx_mapping = {'blender_manual': ("https://docs.blender.org/manual/en/dev/", None)}
# Exclude line numbers, prompts, and console text.
copybutton_exclude = ".linenos, .gp, .go"
project = "Blender %s Python API" % BLENDER_VERSION_STRING
root_doc = "index"
copyright = "Blender Authors"

View File

@ -11,3 +11,5 @@ requests==2.31.0
# Without this theme, the default theme will be used.
furo==2024.1.29
sphinx-basic-ng==1.0.0b2
sphinx-copybutton==0.5.2