FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Have `[Source]` in api docs link to github · Issue #20557 · matplotlib/matplotlib · GitHub

Repository navigation

Have [Source] in api docs link to github #20557

Closed

Description

Problem

The source link in the docs:

links to the matplotlib source on the website. This is ok, but subsequent navigation of the code is more frustrating than on github. For example I can't figure out how to the get to the folder containing https://matplotlib.org/stable/_modules/matplotlib/widgets.html#AxesWidget

Suggested Improvement

Have these be appropriate permalinks to github. This is what scipy does, see: https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.distance.cdist.html#scipy.spatial.distance.cdist

I think the downside is in the archaeology sense that github is perhap more impermanent than the matplotlib website.

Activity

  1. 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?

  2. ianhi commented on Jun 30, 2021

    ContributorAuthor

    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.

  3. timhoffm commented on Jun 30, 2021

    Member

    👍 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.

  4. tacaswell commented on Jul 1, 2021

    Member

    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.

  5. timhoffm commented on Jul 1, 2021

    Member

    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.

  6. added
    🌱 Good first issueOpen a pull request against these issues if there are no active ones!
    on Jul 1, 2021
  7. jklymak commented on Jul 1, 2021

    Member

    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

  8. rajpratyush commented on Jul 4, 2021

    Contributor

    is this issue still open for work?

  9. timhoffm commented on Jul 4, 2021

    Member

    Yes. You‘re welcome to pick it up.

  10. chachaleo commented on Jul 22, 2021

    Is this issue still open?

  11. timhoffm commented on Jul 22, 2021

    Member

    This is still open, but with a proposed solution in #20673.

  12. dmatos2012 commented on Aug 8, 2021

    Contributor

    Merged in #20673

  13. added this to the v3.5.0 milestone on Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentation🌱 Good first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL