-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Document how to write a References section in examples #19232
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
Comments
I think ideally there would be a |
@timhoffm does this issue needs work? |
Yes it does. There are multiple things to do here: The trivial thing would be to just write down what we're currently doing. See, e.g. https://matplotlib.org/devdocs/gallery/lines_bars_and_markers/fill.html#references. However this is more like a hack with several drawbacks, which is why I'm a bit hesitant to document it as the recommended solution
Also, I had the impression that this way of writing code and let sphinx gallery discover it does not always work, but I cannot point at an example right now. The good solution would be to write a sphinx directive
That'd possibly be need to be done upstream in sphinx-gallery. |
Proposal: Switch to
Which results in This works without defining any new directives. For comparison: Current look |
This should go into https://matplotlib.org/devdocs/devel/documenting_mpl.html#writing-examples-and-tutorials
Also:
The text was updated successfully, but these errors were encountered: