-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: Reactivate search for codex #11169
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ | |
import matplotlib | ||
import sphinx | ||
|
||
# This is only necessary to monkey patch the signature later on. | ||
from sphinx_gallery import gen_rst | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be moved below the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made a new PR #11221 for that. Thanks for taking a close look. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks |
||
|
||
# If your extensions are in another directory, add it here. If the directory | ||
# is relative to the documentation root, use os.path.abspath to make it | ||
# absolute, like shown here. | ||
|
@@ -132,6 +135,16 @@ def _check_deps(): | |
|
||
plot_gallery = 'True' | ||
|
||
# Monkey-patching gallery signature to include search keywords | ||
gen_rst.SPHX_GLR_SIG = """\n | ||
.. only:: html | ||
|
||
.. rst-class:: sphx-glr-signature | ||
|
||
Keywords: matplotlib code example, codex, python plot, pyplot | ||
`Gallery generated by Sphinx-Gallery | ||
<https://sphinx-gallery.readthedocs.io>`_\n""" | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ['_templates'] | ||
|
||
|
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.
did you mean to drop the css for
a.reference.external
?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.
Yes, because I want to hide not only the
<a>
tag but the outer<p>
tag.It can of course be discussed whether the search keywords should still be shown on the page. In my opinion that just distracts and is not really useful.