❯ git status On branch mainYour branch is up to date with 'origin/main'.nothing to commit, working tree clean
❯ git show HEAD --statcommit 0ffc78187c3b33d3ede64156dbf9e79f823ec116 (HEAD -> main, upstream/main, upstream/HEAD, origin/main)Author: Pradyun Gedam <pradyunsg@gmail.com>Date: Sat Jun 18 21:53:23 2022 +0100 PEP 632: Remove `Topic: Packaging` header (#2656) pep-0632.rst | 1 - 1 file changed, 1 deletion(-)
❯ python ./build.py Running Sphinx v4.5.0[snip]
❯ git status On branch mainYour branch is up to date with 'origin/main'.Untracked files: (use "git add <file>..." to include in what will be committed) topic/nothing added to commit but untracked files present (use "git add" to track)
❯ ls topic/index.rst packaging.rst
It seems that the auto-generation of documents that were added in #2579 also leaves the generated files on disk, and they are not git-ignored.
Details
PS: While I still think it would be nicer to not generate
.rstfiles in-memory (which would avoid this issue + the regeneration of the files on every run), I'm not gonna advocate for it anymore. :)