Open bame-da opened 1 year ago
Thanks for submitting your first pull request! You are awesome! :hugs:
If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.
Welcome to the EBP community! :tada:
Base: 91.06% // Head: 91.14% // Increases project coverage by +0.07%
:tada:
Coverage data is based on head (
176d6d4
) compared to base (4e83bb6
). Patch coverage: 92.30% of modified lines in pull request are covered.:exclamation: Current head 176d6d4 differs from pull request most recent head 8a33082. Consider uploading reports for the commit 8a33082 to get more accurate results
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
This fixes an issue where
sphinx-autoupdate
does not pick up changes to titles in the_toc.yaml
file.To reproduce, use the example project,
sphinx-autobuild --port 8001 . _build/
title
attributes to one of the files, egapi.md
You'll see that the change does not get picked up. The reason is that line 251 of
api.py
does an equality check on the items in the sitemap:prev_doc = previous[name]
. Since the title is included in theDocument
class, the changes in 2. and 3. above trigger a rebuild of theapi.md
. But the ToC is injected into theintro.md
file, which is unchanged both as a file and from the point of view of theget_changed
function.By including the titles on
FileItems
, such changes get picked up byget_changed
and the ToC updates correctly.