1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #34846 -- Added copy button to code snippets on the documentation

Co-authored-by: Alexander Lötvall <alexander.lotvall@gmail.com>
Co-authored-by: Saarthak Maini <94912101+SaarthakMaini@users.noreply.github.com>
Co-authored-by: Venkata Bhaskar <111889155+VenkataBhaskar@users.noreply.github.com>
This commit is contained in:
Arthur Vasconcelos 2024-06-08 14:43:54 +02:00
parent adae619426
commit 25f61dc88f
2 changed files with 5 additions and 0 deletions

View File

@ -47,8 +47,12 @@ extensions = [
"sphinx.ext.intersphinx",
"sphinx.ext.autosectionlabel",
"sphinx.ext.linkcode",
"sphinx_copybutton",
]
copybutton_prompt_text = r"\.\.\.\\\> |\$ "
copybutton_prompt_is_regexp = True
# AutosectionLabel settings.
# Uses a <page>:<label> schema which doesn't work for duplicate sub-section
# labels, so set max depth.

View File

@ -2,3 +2,4 @@ pyenchant
Sphinx>=4.5.0
sphinxcontrib-spelling
blacken-docs
sphinx-copybutton