gh-101100: Fix Sphinx warning in gc.rst and refactor docs clean list (#103116)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
This commit is contained in:
Hugo van Kemenade 2023-03-30 21:03:50 +03:00 committed by GitHub
parent 21e9de3bf0
commit f192a558f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 3 deletions

View file

@ -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()