From e541ff36406b3eea45fdf349f5723c0826d65b47 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Mon, 16 Jul 2012 17:21:45 +0200 Subject: [PATCH] doc: sort submodules by summary, not by name. This is needed to have a consistent menu. --- doc/autobuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/autobuild.py b/doc/autobuild.py index 36c901b62..06dfa6cb8 100644 --- a/doc/autobuild.py +++ b/doc/autobuild.py @@ -170,7 +170,7 @@ for package in packages: # search modules m = modules.keys() - m.sort() + m.sort(key=lambda x: extract_summary_line(sys.modules[x].__doc__)) for module in m: packagemodule = module.rsplit('.', 1)[0] if packagemodule != package: