Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "source-read" being emitted for included docs #57

Merged
merged 1 commit into from
Aug 26, 2023

Conversation

lmoureaux
Copy link
Contributor

Since Sphinx 7.2, the "source-read" event is emitted for included documents (.. include directive). A document can be included multiple times, and thus the hook cannot assume that it's called only once per docname.

An issue in Sphinx itself affects the extension when using included documents. Add a warning in the README.

Since Sphinx 7.2, the "source-read" event is emitted for included
documents (.. include directive). A document can be included multiple
times, and thus the hook cannot assume that it's called only once per
docname.

An issue in Sphinx itself affects the extension when using included
documents. Add a warning in the README.
@lmoureaux lmoureaux force-pushed the bugfix/sphinx-7.2-include branch from 9d74e45 to f65a9d2 Compare August 25, 2023 22:20
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Aug 25, 2023
This is a short-term solution for longturn#2023. In the long run, upstream
issues should be fixed:
* sphinx-doc/sphinx#11643
* mgeier/sphinx-last-updated-by-git#57

Closes longturn#2023.
@mgeier
Copy link
Owner

mgeier commented Aug 26, 2023

Thanks for this PR!

I'm trying to fix the failing CI before merging this. First step is #58, but there are still errors happening ...

@mgeier
Copy link
Owner

mgeier commented Aug 26, 2023

With #59 the CI passes, but I'm not sure if that's the right thing to do.

@mgeier
Copy link
Owner

mgeier commented Aug 26, 2023

I've created a different work-around in #60, which should fix the problem regardless of the directory where Sphinx is called.
Can you please check if that works in your case?

jwrober pushed a commit to longturn/freeciv21 that referenced this pull request Aug 26, 2023
This is a short-term solution for #2023. In the long run, upstream
issues should be fixed:
* sphinx-doc/sphinx#11643
* mgeier/sphinx-last-updated-by-git#57

Closes #2023.
@mgeier mgeier merged commit f65a9d2 into mgeier:master Aug 26, 2023
@mgeier
Copy link
Owner

mgeier commented Aug 26, 2023

Thanks again @lmoureaux for working on this! I have just created new release, which hopefully fixes the problem.

lmoureaux added a commit to longturn/freeciv21 that referenced this pull request Nov 23, 2023
This is a short-term solution for #2023. In the long run, upstream
issues should be fixed:
* sphinx-doc/sphinx#11643
* mgeier/sphinx-last-updated-by-git#57

Closes #2023.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants