sphinx/doc/man
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
..
index.rst Update documentation structure and theming (#10677) 2022-07-18 22:48:28 +01:00
sphinx-apidoc.rst [apidoc] Add --remove-old option (#12448) 2024-06-20 13:12:37 +02:00
sphinx-autogen.rst [autogen] Add --remove-old option (#12456) 2024-06-21 19:29:46 +02:00
sphinx-build.rst DOCS: Add sphinx-build --jobs default value (#12368) 2024-05-15 03:40:33 +02:00
sphinx-quickstart.rst Deprecate old-style Makefiles in sphinx-quickstart (#11693) 2023-09-21 10:25:00 +01:00