-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add :shows-source-link: option to Sphinx plot directive #24215
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
Conversation
9c5a5dc
to
8fae504
Compare
Just a remark that source links are currently broken for |
f6fedff
to
ccb1229
Compare
Any update on this? |
doc/users/next_whats_new/show_source_links_directive_option.rst
Outdated
Show resolved
Hide resolved
doc/users/next_whats_new/show_source_links_directive_option.rst
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was held up by #24215 (comment). But now realized that we're not hooking deeper into that functionality for execution. We only rely on it in tests. - Therefore, the worst that can happen is that our tests become broken and we have to come up with a better test, but the functionality on the user side is not affect.
This is good to go, modulo my comment on the test.
0379f0d
to
a126736
Compare
a126736
to
3f011be
Compare
Precommit sees trailing whitespace |
I pushed one more little change to fix this error from the CI pipeline:
|
That's fixed now. Should be ready to go. |
@lpsinger do you want to squash/rebase or should I? |
The Sphinx plot directive (`.. plot::`) now supports a `:show-source-link` option to show or hide the link to the source for each plot. The default is set using the `plot_html_show_source_link` variable in `conf.py` (which itself defaults to True).
Done. |
2fea052
to
d58fc21
Compare
Thanks @lpsinger |
Thank you! |
The Sphinx plot directive (
.. plot::
) now supports a:show-source-link
option to show or hide the link to the source for each plot. The default is set using theplot_html_show_source_link
variable inconf.py
(which itself defaults to True).PR Summary
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).