Skip to content

Commit cb911ab

Browse files
gh-59551: Add a stub page for the old library/dialog.html URL
Add support for the "*" marker in Doc/tools/removed-ids.txt, which excludes all IDs of a page from the check-html-ids.py check.
1 parent fde6296 commit cb911ab

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

Doc/library/dialog.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:orphan:
2+
3+
.. This page is retained solely for existing links to library/dialog.html.
4+
Direct readers to the renamed page instead.
5+
6+
Tkinter dialogs
7+
===============
8+
9+
This page has been renamed. The modules it documented are now described in
10+
:doc:`./tkinter.dialogs`:
11+
12+
* :mod:`tkinter.simpledialog`
13+
* :mod:`tkinter.filedialog`
14+
* :mod:`tkinter.commondialog`
15+
* :mod:`tkinter.dialog`

Doc/tools/check-html-ids.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def do_check(baseline, checked, excluded, *, verbose_print):
8383
print(f'{name}: (page missing)')
8484
print()
8585
else:
86+
if (name, '*') in excluded:
87+
continue
8688
missing_ids = set(baseline_ids) - set(checked_ids)
8789
if missing_ids:
8890
missing_ids = {

Doc/tools/removed-ids.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# HTML IDs excluded from the check-html-ids.py check.
2+
# Use "*" instead of an ID to exclude all IDs of a page, and
3+
# "(page missing)" to allow the page itself to be removed.
24

35
# Remove from here in 3.16
46
c-api/allocation.html: deprecated-aliases
@@ -84,4 +86,4 @@ reference/expressions.html: generator.send
8486
reference/expressions.html: generator.throw
8587

8688
# Renamed to library/tkinter.dialogs.html
87-
library/dialog.html: (page missing)
89+
library/dialog.html: *

0 commit comments

Comments
 (0)