forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-101100: Fix Sphinx warning in gc.rst and refactor docs clean…
… list (python#103116) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
- Loading branch information
Showing
4 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# These files must pass Sphinx nit-picky mode, as tested on the CI | ||
# via touch-clean-files.py in doc.yml. | ||
# Add blank lines between files and keep them sorted lexicographically | ||
# to help avoid merge conflicts. | ||
|
||
Doc/library/gc.rst | ||
|
||
Doc/library/sqlite3.rst | ||
|
||
Doc/whatsnew/3.12.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
""" | ||
Touch files that must pass Sphinx nit-picky mode | ||
so they are rebuilt and we can catch regressions. | ||
""" | ||
|
||
from pathlib import Path | ||
|
||
# Input file has blank line between entries to reduce merge conflicts | ||
with Path("Doc/tools/clean-files.txt").open() as clean_files: | ||
CLEAN = [ | ||
Path(filename.strip()) | ||
for filename in clean_files | ||
if filename.strip() and not filename.startswith("#") | ||
] | ||
|
||
print("Touching:") | ||
for filename in CLEAN: | ||
print(filename) | ||
filename.touch() |