-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC Link in warning about doc build with Sphinx versions outdated #26598
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
Comments
Hi @lucyleeow , I would love to fix the issue. I am new to open source and looking for contributions. Kindly guide me so I can resolve this. |
I was checking the script: Which says "Environments are conda environment.yml", also in Says
"circle.yml", Which also does not exist So this could have been changed to the whole new file update_environments_and_lock_files.py In that case both documentation should be changed. Thoughts @glemaitre @adrinjalali |
From what I've seen, |
Thanks for all the interest. @Charlie-XIAO the warning reads:
We do not want the min dependency version of Sphinx, we want the version of Sphinx used by CircleCI to build the documentation for scikit-learn (this is also the documentation that can be viewed in doc PRs, see: https://scikit-learn.org/dev/developers/contributing.html#generated-documentation-on-github-actions and for more info on CI see: https://scikit-learn.org/dev/developers/contributing.html#continuous-integration-ci) It's probably best to wait for a core-dev to suggest the best alternative link. |
@lucyleeow My bad, thanks for reminding me. I was looking back a few commits when the CircleCI build was still using |
This search can be confusing because it shows both the min dependency (not what we want) and the version of sphinx that is used to build docs. I would suggest either:
Making it a link directly to the file seems cleaner but the search gives you what you are looking for quicker. Again, probably best to wait for a core-dev to chime in, thank you for your patience. |
Sorry about that @lucyleeow, I didn't see that you have already found that file. I will close my PR in favor of your earlier investigation. |
I think the issue @rand0wn raised is different from this one, and they did not open a PR. I will open another issue about this. I think you can keep your PR open and just amend when we know the best alternative link. |
@lucyleeow I @ the wrong person previously 😂 (now fixed), it should be in favor of your earlier investigation. Sorry for the confusion. |
No problem, happy for you to take this issue. |
Thanks for spotting this! I like the suggestion of using https://github.com/search?q=repo%3Ascikit-learn%2Fscikit-learn+sphinx+path%3Abuild_tools%2Fcircle%2Fdoc_environment.yml&type=code (a search for "sphinx" inside the specific file). |
Describe the issue linked to the documentation
The link in the warning about sphinx versions at the end of 'Building the documentation' is to a Github search that uses a now unrecognised qualifier. Also I think there has been a change in how dependencies in CI are dealt with now (original PR, #10685, adding this section is 6 years old) and even when the qualifier syntax is updated, that search no longer shows the circle CI sphinx version.
Suggest a potential alternative/fix
Could this link just be to the file
build_tools/circle/doc_environment.yml
? Or link to github search for 'sphinx' within this file?The text was updated successfully, but these errors were encountered: