Hi @param-thakker anyone is welcome to work on any issue so feel free to have a go at it. That said this issue probably deserves some discussion from other people before being implemented as it's not clear that everyone would view it as an improvement.
👍 On this. Those code pages are massive in our code base (to an extend that we've deactivated upload of these pages for CI) and the code is on github anyway. I don't think impermanence of github is a practical issue. The only downside would be that you might loose the docs source link for old versions if GitHub goes away and we move to something else. That's as unlikely as it's bearable.
I propose to discuss this on the dev call tomorrow.
There is also some re-hosting of our docs on internal (air-gapped) networks or just on laptops so there are some use cases where having all of the links be internal is nice.
Note we also would like it so there was a switch on the sphinx config to build with the rendered source so folks could optionally build the old way, if feasible
Activity
param-thakker commented on Jun 30, 2021
Hi @ianhi , Can I work on this? I'm a first time contributor. Also, where can I find this source link in the codebase?
ianhi commented on Jun 30, 2021
Hi @param-thakker anyone is welcome to work on any issue so feel free to have a go at it. That said this issue probably deserves some discussion from other people before being implemented as it's not clear that everyone would view it as an improvement.
timhoffm commented on Jun 30, 2021
👍 On this. Those code pages are massive in our code base (to an extend that we've deactivated upload of these pages for CI) and the code is on github anyway. I don't think impermanence of github is a practical issue. The only downside would be that you might loose the docs source link for old versions if GitHub goes away and we move to something else. That's as unlikely as it's bearable.
I propose to discuss this on the dev call tomorrow.
@param-thakker You're welcome to work on this, once we have decided this is something we want.
The source links are generated by sphinx. One can modify this behavior through the [sphinx.ext.linkcode](plugin https://www.sphinx-doc.org/en/master/usage/extensions/linkcode.html).
See also https://github.com/scipy/scipy/blob/b8bdbbf112413e9a8f5e209fc05d3b8927718b28/doc/source/conf.py#L427 for the solution in SciPy.
tacaswell commented on Jul 1, 2021
There is also some re-hosting of our docs on internal (air-gapped) networks or just on laptops so there are some use cases where having all of the links be internal is nice.
timhoffm commented on Jul 1, 2021
It was decided on the dev call, that we want to move to linking to github. @param-thakker You are welcome to pick this up.
jklymak commented on Jul 1, 2021
Note we also would like it so there was a switch on the sphinx config to build with the rendered source so folks could optionally build the old way, if feasible
rajpratyush commented on Jul 4, 2021
is this issue still open for work?
timhoffm commented on Jul 4, 2021
Yes. You‘re welcome to pick it up.
chachaleo commented on Jul 22, 2021
Is this issue still open?
timhoffm commented on Jul 22, 2021
This is still open, but with a proposed solution in #20673.
dmatos2012 commented on Aug 8, 2021
Merged in #20673