mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
[misc] update wording of `versionadded to Added in [...]` (#12184)
Motivated by the community feedback, the wording of ``versionadded`` is changed from ``New in [...]`` to ``Added in [...]``.
This commit is contained in:
@@ -9,7 +9,7 @@ def test_build(app):
|
||||
|
||||
# TODO: Use better checking of html content
|
||||
htmltext = (app.outdir / 'changes.html').read_text(encoding='utf8')
|
||||
assert 'New in version 0.6: Some funny stuff.' in htmltext
|
||||
assert 'Added in version 0.6: Some funny stuff.' in htmltext
|
||||
assert 'Changed in version 0.6: Even more funny stuff.' in htmltext
|
||||
assert 'Deprecated since version 0.6: Boring stuff.' in htmltext
|
||||
|
||||
|
||||
@@ -113,7 +113,7 @@ def tail_check(check):
|
||||
# abbreviations
|
||||
('markup.html', ".//abbr[@title='abbreviation']", '^abbr$'),
|
||||
# version stuff
|
||||
('markup.html', ".//div[@class='versionadded']/p/span", 'New in version 0.6: '),
|
||||
('markup.html', ".//div[@class='versionadded']/p/span", 'Added in version 0.6: '),
|
||||
('markup.html', ".//div[@class='versionadded']/p/span",
|
||||
tail_check('First paragraph of versionadded')),
|
||||
('markup.html', ".//div[@class='versionchanged']/p/span",
|
||||
|
||||
Reference in New Issue
Block a user