- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Autodoc may overwrite where functions and classes with different case exist #2024
Comments
What would be the right way to tackle this in Sphinx? It prohibits packaging docs for Windows. In scikit-learn's doc build, we introduced a config parameter in scikit-learn/scikit-learn#13022 which allows the doc maintainer to specify renames for paths to generated docs:
The implementation relied on a monkey-patch to
Where/how is the right place to implement a fix? |
Here is where autosummary determines the filename of the stub files. sphinx/sphinx/ext/autosummary/generate.py Line 421 in 533b4ac
|
Hurrah! Thank you for the review! |
It's possible to have a function and a class in the same module whose names differ only in their case. In fact, scikit-learn includes a few:
sklearn.cluster.DBSCAN
vssklearn.cluster.dbscan
sklearn.covariance.OAS
vssklearn.covariance.OAS
sklearn.decomposition.FastICA
vssklearn.decomposition.fastica
Corresponding files are generated by autodoc and the handling of their different is system dependent: they may be overwritten, or may be distinguished by the OS/filesystem. Is it possible to identify such lowercase duplicates and munge the filenames to avoid conflict?
The text was updated successfully, but these errors were encountered: