Use hyphenated version directives (#13714)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
Stephen FinucaneandAdam Turner authored and GitHub committed 2025-10-06 00:10:35 +01:00
1 parent 42aa5114ba
commit 44a98961b2
13 files changed
+172 -65

No files matched your search

@@ -205,23 +205,53 @@ def tail_check(check: str) -> Callable[[Iterable[Element]], Literal[True]]:
(
'markup.html',
".//div[@class='versionadded']/p/span",
tail_check('First paragraph of versionadded'),
tail_check('First paragraph of version-added'),
),
(
'markup.html',
".//div[@class='versionadded']/p/span",
tail_check('Deprecated alias for version-added'),
),
(
'markup.html',
".//div[@class='versionchanged']/p/span",
tail_check('First paragraph of versionchanged'),
tail_check('First paragraph of version-changed'),
),
(
'markup.html',
".//div[@class='versionchanged']/p",
'Second paragraph of versionchanged',
'Second paragraph of version-changed',
),
(
'markup.html',
".//div[@class='versionchanged']/p/span",
tail_check('Deprecated alias for version-changed'),
),
(
'markup.html',
".//div[@class='deprecated']/p/span",
'Deprecated since version 0.6: ',
),
(
'markup.html',
".//div[@class='deprecated']/p/span",
tail_check('Boring stuff.'),
),
(
'markup.html',
".//div[@class='deprecated']/p/span",
tail_check('Deprecated alias for version-deprecated'),
),
(
'markup.html',
".//div[@class='versionremoved']/p/span",
'Removed in version 0.6: ',
),
(
'markup.html',
".//div[@class='versionremoved']/p/span",
tail_check('Deprecated alias for version-removed'),
),
# footnote reference
('markup.html', ".//a[@class='footnote-reference brackets']", r'1'),
# created by reference lookup