From e996e1636f458a7ca0cc713d02bc238830de69e2 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 18 Aug 2013 20:17:11 +0000 Subject: [PATCH] add links to the overview sections in reference documentation --- docs/gen_reference_doc.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/gen_reference_doc.py b/docs/gen_reference_doc.py index 9b27dd7ea..5fdd1ffee 100644 --- a/docs/gen_reference_doc.py +++ b/docs/gen_reference_doc.py @@ -800,6 +800,9 @@ libtorrent reference documentation for cat in categories: print >>out, '%s' % heading(cat, '-') + if 'overview' in categories[cat]: + print >>out, '| overview__' + category_filename = categories[cat]['filename'].replace('.rst', '.html') for c in categories[cat]['classes']: print >>out, '| ' + print_link(c['name'], symbols[c['name']]) @@ -810,7 +813,9 @@ for cat in categories: print >>out, '| ' + print_link(e['name'], symbols[e['name']]) print >>out, '' -print >>out, dump_link_targets() + if 'overview' in categories[cat]: + print >>out, '__ %s#overview' % categories[cat]['filename'].replace('.rst', '.html') + print >>out, dump_link_targets() out.write('''