Skip to content
Permalink
Browse files

add automatically index for mathdef

  • Loading branch information...
sdpython committed Jul 9, 2016
1 parent 0c77aeb commit f8688fbcfa26bd8aae16f0cbde78736ef7f4158e
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/pyquickhelper/sphinxext/sphinx_mathdef_extension.py
@@ -141,6 +141,11 @@ def run(self):

# index node
index = self.options.get('index', None)
imposed = ",".join(a for a in [mathtag, title] if a)
if index is None or len(index.strip()) == 0:
index = imposed
else:
index += "," + imposed
if index is not None:
indexnode = addnodes.index()
indexnode['entries'] = ne = []

0 comments on commit f8688fb

Please sign in to comment.
You can’t perform that action at this time.