-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: "Show Source" button on API pages does not link to expected source code #48715
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
Hello @tehunter ! |
If you comment on this thread with the single word "take", the bot will assign it to you. Thanks! |
take |
Hey @tehunter could you help me find the file which has the source code for the page which you have raised the issue for? |
@Pro-Coder04 , I'm fairly new to it as well. Perhaps @phofl or @datapythonista could point you in the right direction. If I had to guess, I bet it is related to the recent version update of the API documentation theme (see #48285) and not directly in pandas code. The documentation pages are autogenerated from a package called "Sphinx", the API pages are defined in |
Happy to get the CC: @jorisvandenbossche, I guess you added this when we started using the pydata theme, probably it's just the default |
Looks like pydata-sphinx-theme added a default Alternative option is to override the |
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.html
Documentation problem
The "Show Source" button on the new version of the documentation pages is not useful to most users and is likely to cause confusion. In addition, it conflicts with the "[source]" link which also exists on the page (and on previous versions of the documentation).
Rather than showing the relevant API source code, the "Show Source" button shows the source code for the current documentation page (.e.g. https://pandas.pydata.org/docs/_sources/reference/api/pandas.DataFrame.rst.txt).
Suggested fix for documentation
I suggest the "Show Source" button be removed, or it should be remapped to the same link as the current "[source]" link (which should then be removed).
I could see some value for developers wanted to access the documentation source. If that is important, then I would propose (1) move to the bottom or out of a high-visibility area, and (2) rename it to "Show Documentation Source"
The text was updated successfully, but these errors were encountered: