Skip to content

Commit

Permalink
Remove regex from sphinx-copybutton config, now that linenos are excl… (
Browse files Browse the repository at this point in the history
#1725)

* Remove regex from sphinx-copybutton config, now that linenos are excluded by default

See https://sphinx-copybutton.readthedocs.io/en/latest/use.html#automatic-exclusion-of-prompts-from-the-copies

See also plone/documentation#1563

* Add news item
  • Loading branch information
stevepiercy committed Oct 31, 2023
1 parent 5f92149 commit c43fd4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,6 @@ def patch_pygments_to_highlight_jsonschema():
]


# -- sphinx_copybutton -----------------------
copybutton_prompt_text = r"^ {0,2}\d{1,3}"
copybutton_prompt_is_regexp = True


# -- Options for HTML output --------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
1 change: 1 addition & 0 deletions news/1725.documentation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove regular expression from `sphinx-copybutton` configuration, now that `linenos` are excluded by default. @stevepiercy

0 comments on commit c43fd4f

Please sign in to comment.