Files
sphinx/sphinx
Chris Sewell bc1a5c5c88 [autogen] Add --remove-old option (#12456)
A common "gotcha" of re-running `sphinx-autogen`, is that if there are changes it will not remove old files, leading to build errors for files not in a `toctree`

This commit introduces a `--remove-old` option to remove these files.

Note, a key detail here is that we don't want to simply clear the directory before running `sphinx-autogen`,
since this would lead to all files having a new `mtime`,
and then `sphinx-build` would rebuild all of them even if they have not changed.
So we must first collect the list of all correct files, then remove any not in the list.
2024-06-21 19:29:46 +02:00
..
2024-04-29 03:03:15 +01:00
2024-04-22 23:09:01 +01:00
2024-04-16 22:59:33 +01:00
2024-03-14 11:26:30 +01:00
2024-01-16 22:13:47 +00:00
2024-05-17 12:28:50 +02:00
2024-04-22 20:21:26 +01:00
2023-08-16 23:22:14 +01:00
2023-02-18 01:58:05 +00:00
2024-04-22 23:09:01 +01:00