summaryrefslogtreecommitdiff
path: root/sandbox/py-rest-doc/sphinx/directives.py
diff options
context:
space:
mode:
authorgbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-07-20 15:41:00 +0000
committergbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2007-07-20 15:41:00 +0000
commitbb333974420adb61ffefe8d67ecb741a12be759a (patch)
tree560309cad1029c43ecc0f91a123a5a65e36139e9 /sandbox/py-rest-doc/sphinx/directives.py
parentfd720385f10fe99ccb3f98d184bc4050d6bb12f0 (diff)
downloaddocutils-bb333974420adb61ffefe8d67ecb741a12be759a.tar.gz
Unify index handling and write the doc section about it.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5383 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/py-rest-doc/sphinx/directives.py')
-rw-r--r--sandbox/py-rest-doc/sphinx/directives.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sandbox/py-rest-doc/sphinx/directives.py b/sandbox/py-rest-doc/sphinx/directives.py
index 9c5b97e78..53310033a 100644
--- a/sandbox/py-rest-doc/sphinx/directives.py
+++ b/sandbox/py-rest-doc/sphinx/directives.py
@@ -21,6 +21,11 @@ from . import addnodes
# ------ index markup --------------------------------------------------------------
+entrytypes = [
+ 'single', 'pair', 'triple', 'quadruple',
+ 'module', 'keyword', 'operator', 'object', 'exception', 'statement', 'builtin',
+]
+
def index_directive(name, arguments, options, content, lineno,
content_offset, block_text, state, state_machine):
arguments = arguments[0].split('\n')