You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
@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.
I will have a look at it (I would expect Sphinx to link to the latest version commit SHA).
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 main branch here, we would have have some logic to point to either main (for latest) or the relevant github tag (for stable). I think RTD sets an environment variable we can use to determine which of those two options is correct.
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: