-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] Patches sphinx.ext.autosummary for case insensitive file systems #13022
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
[MRG] Patches sphinx.ext.autosummary for case insensitive file systems #13022
Conversation
The difference being that the other pr automatically identifies collisions? Yes, this is simpler to read |
Yes the other PR is automatic, while this one requires a user to add a function to |
There is an issue in sphinx regarding this issue: sphinx-doc/sphinx#1495 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a nice fix, but honestly I do wonder if we want to maintain this. The only affected users are maintainers on Mac OS as far as I can tell, and the solution is not that trivial. Proposing it in sphinx would be ideal.
Yea, I wish this was less hacky. The logic of "check if file exist by not using the file system and renaming the file to something" is kind of weird to configure (from a sphinx user point of view) |
This is ancient, but if it's not been fixed upstream in Sphinx (we should check), we should consider merging it before trying to create a zipped-HTML release of the docs. |
We are still using this for update the docs for dash-docs. Last time I looked at this, From the original issue: sphinx-doc/sphinx#1495 it looks like this issue has been pushed up to "Some future version" milestone. (Sounds familiar eh?) |
I have a feeling this would introduce new sphinx warnings and fail the CI (now that it catches sphinx warnings). Edit - Oh wow it worked |
Let's merge this one so that we can proceed on #17051? |
This has broken the doc build:
|
should I revert it or are you gonna do it? |
…systems (scikit-learn#13022)" This reverts commit 8a695d7.
…cikit-learn#13022) * ENH: Patches autosummary for case insensitive file systems * DOC: More details * REV
…systems (scikit-learn#13022)" (scikit-learn#17780) This reverts commit 8a695d7.
…cikit-learn#13022) * ENH: Patches autosummary for case insensitive file systems * DOC: More details * REV
…systems (scikit-learn#13022)" (scikit-learn#17780) This reverts commit 8a695d7.
@thomasjpfan - I was so happy to see you have a solution for this problem here, and sad to see it needed to be reverted. |
@bsipocz The fix was added to sphinx directly in sphinx-doc/sphinx#7927 with the Lines 583 to 589 in 4db0492
|
Reference Issues/PRs
This is an alternative solution to issue #12712. This PR or PR #12968 can address the issue.
What does this implement/fix? Explain your changes.
This PR adds configuration options to change the suffix:
This PR monkeypatches
os.path.join
used by sphinx.ext.autosummary.generate to return a filename with a new suffix.Any other comments?
This PR contains less logic and gives the control to the user, thus a little simpler when compared to #12968.