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 @@ -986,7 +986,7 @@ div.sphx-glr-download a {
986
986
background-image : none !important ;
987
987
}
988
988
989
- p .sphx-glr-signature a . reference . external {
989
+ p .sphx-glr-signature {
990
990
display : none !important ;
991
991
}
992
992
Original file line number Diff line number Diff line change 17
17
import matplotlib
18
18
import sphinx
19
19
20
+ # This is only necessary to monkey patch the signature later on.
21
+ from sphinx_gallery import gen_rst
22
+
20
23
# If your extensions are in another directory, add it here. If the directory
21
24
# is relative to the documentation root, use os.path.abspath to make it
22
25
# absolute, like shown here.
@@ -132,6 +135,16 @@ def _check_deps():
132
135
133
136
plot_gallery = 'True'
134
137
138
+ # Monkey-patching gallery signature to include search keywords
139
+ gen_rst .SPHX_GLR_SIG = """\n
140
+ .. only:: html
141
+
142
+ .. rst-class:: sphx-glr-signature
143
+
144
+ Keywords: matplotlib code example, codex, python plot, pyplot
145
+ `Gallery generated by Sphinx-Gallery
146
+ <https://sphinx-gallery.readthedocs.io>`_\n """
147
+
135
148
# Add any paths that contain templates here, relative to this directory.
136
149
templates_path = ['_templates' ]
137
150
You can’t perform that action at this time.
0 commit comments