summaryrefslogtreecommitdiff
path: root/docs/generate.py
diff options
context:
space:
mode:
authorthatch <devnull@localhost>2008-07-26 10:08:18 -0700
committerthatch <devnull@localhost>2008-07-26 10:08:18 -0700
commitbaed11a55af4131b021e6f2f4b77dcf6bcf2b35f (patch)
tree549fa410505ce1b409723daee6db994f333b3e81 /docs/generate.py
parent5e95a05dfe23a16082d819b917b46ab75a65c038 (diff)
downloadpygments-baed11a55af4131b021e6f2f4b77dcf6bcf2b35f.tar.gz
Use a consistent ordering when generating the formatter docs.
Diffstat (limited to 'docs/generate.py')
-rw-r--r--docs/generate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/generate.py b/docs/generate.py
index 7702cfe5..658ada4b 100644
--- a/docs/generate.py
+++ b/docs/generate.py
@@ -69,7 +69,8 @@ def generate_formatter_docs():
from pygments.formatters import FORMATTERS
out = []
- for cls, data in FORMATTERS.iteritems():
+ for cls, data in sorted(FORMATTERS.iteritems(),
+ key=lambda x: x[0].__name__):
heading = cls.__name__
out.append('`' + heading + '`\n' + '-'*(2+len(heading)) + '\n')
out.append(cls.__doc__)