Skip to content
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

Inspiration from new gallery package for sphinx: sphinx-exhibit #402

Closed
choldgraf opened this issue Aug 26, 2018 · 5 comments · Fixed by #525
Closed

Inspiration from new gallery package for sphinx: sphinx-exhibit #402

choldgraf opened this issue Aug 26, 2018 · 5 comments · Fixed by #525

Comments

@choldgraf
Copy link
Contributor

hey folks - I just found out about an interesting project that @anntzer from the Matplotlib community is working on. It's called "sphinx-exhibit" and replicates many of the things that sphinx-gallery does with a few improvements:

https://github.com/anntzer/sphinx-exhibit

The main differences to me seem to be:

  1. sphinx-exhibit does more introspection of the code to generate intersphinx links for methods etc, similar to what @larsoner was working on in a recent PR (don't remember which one).
  2. sphinx-exhibit exposes some sphinx directives so you can embed a gallery of specific examples files.

Anyway, worth keeping an eye on the project! Maybe the build process of sphinx-exhibit is different enough that it isn't possible to mimic in sphinx-gallery, but worth checking nonetheless!

@anntzer
Copy link
Contributor

anntzer commented Aug 26, 2018

See matplotlib/matplotlib#11936 for some examples of the difference in generated docs and matplotlib/matplotlib#11936 (comment) for the "why" of sphinx-exhibit.

@GaelVaroquaux
Copy link
Contributor

GaelVaroquaux commented Aug 26, 2018 via email

@GaelVaroquaux
Copy link
Contributor

@larsoner : what is the reference to your PR that does deeper inspection?

@GaelVaroquaux GaelVaroquaux changed the title new gallery package for sphinx from matplotlib: sphinx-exhibit Inspiration from new gallery package for sphinx: sphinx-exhibit Aug 31, 2018
@larsoner
Copy link
Contributor

Mine merely parsed the docs for refs and added them. But in theory something similar could be used on objects themselves: #347

@choldgraf
Copy link
Contributor Author

It sounds like @anntzer has already figured out much of the machinery for this, it's mostly a matter of adapting it to how sphinx-gallery builds things. However I'm not sure how incompatible the approaches of the two projects are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants