-
Notifications
You must be signed in to change notification settings - Fork 1.1k
"View on github" links not working #2456
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
The reason is that there have been PRs that added content before those lines, shifting the content down when there were additions between last release (the time those line numbers were taken, and the current main).
#2434, #2433, #2435 and #2428 side effect
#2256 side effect I will have a look at it (I would expect Sphinx to link to the latest version commit SHA). |
@echedey-ls yup, when I switch my RTD view from "stable" to "latest", the links work correctly. I'm OK if this issue is closed with nothing to fix, if that's your assessment. |
It's our own code actually. We overrode sphinx's behavior so that generated pages link to the relevant source code, even when the source code structure doesn't match the built website structure (see https://github.com/pvlib/pvlib-python/pull/913/files). Anyway I think it should be possible to fix the issue @cwhanse encountered. Instead of hardcoding the link to the |
Some "View on github" links return "page not found" or direct to lines different from the source function.
To Reproduce
I tested three links:
For pvsystem.v_from_i the "View on github" link directs to these lines in the
max_power_pt
function.For pvsystem.max_power_point the "View on github" link directs to these lines.
For ivtools.sdm.pvsyst_temperature_coeff the "View on github" link returns page not found.
The text was updated successfully, but these errors were encountered: