Docs: Python: Add copy button to code blocks #119948
|
@ -25,8 +25,15 @@ else:
|
||||||
BLENDER_VERSION_HASH = "Hash Unknown"
|
BLENDER_VERSION_HASH = "Hash Unknown"
|
||||||
BLENDER_VERSION_HASH_HTML_LINK = BLENDER_VERSION_HASH
|
BLENDER_VERSION_HASH_HTML_LINK = BLENDER_VERSION_HASH
|
||||||
|
|
||||||
extensions = ["sphinx.ext.intersphinx"]
|
extensions = [
|
||||||
intersphinx_mapping = {"blender_manual": ("https://docs.blender.org/manual/en/dev/", None)}
|
"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
|
project = "Blender %s Python API" % BLENDER_VERSION_STRING
|
||||||
root_doc = "index"
|
root_doc = "index"
|
||||||
copyright = "Blender Authors"
|
copyright = "Blender Authors"
|
||||||
|
|
|
@ -11,3 +11,5 @@ requests==2.31.0
|
||||||
# Without this theme, the default theme will be used.
|
# Without this theme, the default theme will be used.
|
||||||
furo==2024.1.29
|
furo==2024.1.29
|
||||||
sphinx-basic-ng==1.0.0b2
|
sphinx-basic-ng==1.0.0b2
|
||||||
|
|
||||||
|
sphinx-copybutton==0.5.2
|
||||||
|
|
Loading…
Reference in New Issue