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:
parent
adae619426
commit
25f61dc88f
@ -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.
|
||||
|
@ -2,3 +2,4 @@ pyenchant
|
||||
Sphinx>=4.5.0
|
||||
sphinxcontrib-spelling
|
||||
blacken-docs
|
||||
sphinx-copybutton
|
||||
|
Loading…
Reference in New Issue
Block a user