Provide links to API docs in examples · Issue #2222 · matplotlib/matplotlib · GitHub
Skip to content

Provide links to API docs in examples #2222

Closed

Description

@drevicko

It would be very useful to provide links to matplotlib API docs for methods/objects/etc.. used in examples. This could be a part of MEP12.

An intuitive approach could be to automatically render links in displayed code. If that sort of thing is not already in Sphynx, I guess I'm suggesting a sphynx extension (and should go over there to suggest it ;)

Some (not so good) alternatives could be to associate links to API docs with certain tags or to include a few hand-coded links in each example page. Not so good as it would be incomplete (many methods/... used would not be linked) and would lead to inconsistencies (some examples much better linked than others).

Activity

  1. drevicko commented on Jul 17, 2013

    @drevicko
    ContributorAuthor

    Likewise, links from the API docs to examples containing/using the said method/object etc.. would be useful.

  2. pelson commented on Aug 12, 2013

    @pelson
    Member

    I'd love to see this. Sounds like some hard work, but it'd be well worth it IMHO.

  3. added this to the milestone on Aug 17, 2014
  4. petehuang commented on Dec 29, 2016

    @petehuang
    Contributor

    This would still be useful, and a Sphinx extension would be nice, but wondering if it would ever get done. Could turn this into a larger doc project.

  5. tacaswell commented on Dec 29, 2016

    @tacaswell
    Member

    @NelleV is this something sphinx-gallery can already do?

  6. dopplershift commented on Dec 29, 2016

    @dopplershift
    Contributor

    Yes, though in brief attempts I've not made it work for my own stuff. See for example:
    https://sphinx-gallery.readthedocs.io/en/latest/auto_examples/plot_exp.html#sphx-glr-auto-examples-plot-exp-py

  7. tacaswell commented on Dec 29, 2016

    @tacaswell
    Member

    Tagged as new-contributor friendly as this is self-contained from the rest of the library, but hard as it involves learning how to write / modify sphinx extensions

  8. NelleV commented on Dec 30, 2016

    @NelleV
    Member

    Yes, that feature is in sphinx-gallery

  9. NelleV commented on Dec 30, 2016

    @NelleV
    Member

    @tacaswell is the ticket to migrate to sphinx gallery or to reimplement the feature ? If it is to migrate to sphinx-gallery, we already have a ticket opened.

  10. petehuang commented on Dec 30, 2016

    @petehuang
    Contributor

    @NelleV Wow this is cool!

    I believe this is to migrate

  11. choldgraf commented on Jul 15, 2017

    @choldgraf
    Contributor

    This issue is now taken care of with the migration to sphinx-gallery. There are still some kinks to work out, but the general functionality is there and should be spot-checked with subsequent issues / PRs. I think we should close this

  12. WeatherGod commented on Jul 15, 2017

    @WeatherGod
    Member

    Agreed, closing.

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions