File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1002,7 +1002,7 @@ div.sphx-glr-download a {
1002
1002
background-image : none !important ;
1003
1003
}
1004
1004
1005
- p .sphx-glr-signature a . reference . external {
1005
+ p .sphx-glr-signature {
1006
1006
display : none !important ;
1007
1007
}
1008
1008
Original file line number Diff line number Diff line change 18
18
import six
19
19
from glob import glob
20
20
21
+ # This is only necessary to monkey patch the signature later on.
22
+ from sphinx_gallery import gen_rst
23
+
21
24
# If your extensions are in another directory, add it here. If the directory
22
25
# is relative to the documentation root, use os.path.abspath to make it
23
26
# absolute, like shown here.
@@ -139,6 +142,16 @@ def _check_deps():
139
142
140
143
plot_gallery = 'True'
141
144
145
+ # Monkey-patching gallery signature to include search keywords
146
+ gen_rst .SPHX_GLR_SIG = """\n
147
+ .. only:: html
148
+
149
+ .. rst-class:: sphx-glr-signature
150
+
151
+ Keywords: matplotlib code example, codex, python plot, pyplot
152
+ `Gallery generated by Sphinx-Gallery
153
+ <https://sphinx-gallery.readthedocs.io>`_\n """
154
+
142
155
# Add any paths that contain templates here, relative to this directory.
143
156
templates_path = ['_templates' ]
144
157
You can’t perform that action at this time.
0 commit comments