diff --git a/docs/gen_reference_doc.py b/docs/gen_reference_doc.py index b26566a4b..228afa89d 100644 --- a/docs/gen_reference_doc.py +++ b/docs/gen_reference_doc.py @@ -464,7 +464,7 @@ out.write('''
Declared in "%s"
' % (o['file'], html_sanitize(o['file']))) + out.write('Declared in "%s"
' % (o['file'], html_sanitize(o['file']))) def print_link(out, name): our.write('%s' % (symbols[name], name)) @@ -504,9 +504,9 @@ for cat in categories: out.write('') print >>out, '%s\n{' % html_sanitize(c['decl']) for f in c['fun']: - print >>out, ' %s' % html_sanitize(f['signature'].replace('\n', '\n ')) + print >>out, ' %s' % html_sanitize(f['signature'].replace('\n', '\n ')).replace(f['name'], '' + f['name'] + '') - if len(c['fun']) > 0 and len(c['enums']) > 0 and len(c['fields']) > 0: print >>out, '' + if len(c['fun']) > 0 and len(c['enums']) + len(c['fields']) > 0: print >>out, '' first = True for e in c['enums']: @@ -515,7 +515,7 @@ for cat in categories: first = False print >>out,' enum %s\n {' % html_sanitize(e['name']) for v in e['values']: - print >>out,' %s' % html_sanitize(v['name']) + print >>out,' %s,' % html_sanitize(v['name']) print >>out,' };' if len(c['fun']) + len(c['enums']) > 0 and len(c['fields']): print >>out, '' @@ -528,8 +528,9 @@ for cat in categories: # TODO: merge overloaded functions for f in c['fun']: if f['desc'] == '': continue - print >>out, '%s()
' % (html_sanitize(f['name']), html_sanitize(f['name'])) - print >>out, '' % html_sanitize(f['signature'].replace('\n', '\n ')) + name = html_sanitize(f['name']) + print >>out, '%s%s()
' % (name, name) + print >>out, '' % html_sanitize(f['signature'].replace('\n', '\n ')).replace(name, '' + name + '') print >>out, '%s%s
' % html_sanitize(f['desc']) for e in c['enums']: @@ -548,17 +549,19 @@ for cat in categories: # TODO: merge overloaded functions for f in functions: - print >>out, '%s()
' % (html_sanitize(f['name']), html_sanitize(f['name'])) + name = html_sanitize(f['name']) + print >>out, '%s()
' % (name, name) print_declared_in(out, f) - print >>out, '' % html_sanitize(f['signature']) + print >>out, '%s' % html_sanitize(f['signature']).replace(name, '' + name + '') print >>out, '%s%s
' % html_sanitize(f['desc']) for e in enums: - print >>out, 'enum %s
' % (html_sanitize(e['name']), html_sanitize(e['name'])) + name = html_sanitize(e['name']) + print >>out, 'enum %s
' % (name, name) print_declared_in(out, e) print >>out, '
value | description |
---|---|
%s | %s |
%s | %s |