2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-07 17:35:18 +00:00

[#866] text ARM, remove ungenerated indices

This commit is contained in:
Andrei Pavel
2021-08-03 15:33:51 +03:00
committed by Tomek Mrugalski
parent f8c84eaa3e
commit efa104ea26
4 changed files with 19 additions and 17 deletions

View File

@@ -88,8 +88,11 @@ API Reference
rst += '.\n\n'
for func in sorted(apis.values(), key=lambda f: f['name']):
name = func['name']
rst += '.. _ref-%s:\n\n' % name
# The dot is added to overcome an overlap of ordinal numbers and text
# in the table of contents.
name = '. ' + func['name']
real_name = func['name']
rst += '.. _ref-%s:\n\n' % real_name
rst += name + '\n'
rst += '-' * len(name) + '\n\n'
@@ -120,7 +123,7 @@ API Reference
rst += 'Access: %s *(parameter ignored in this Kea version)* \n\n' % access
# description and examples
rst += 'Description and examples: see :ref:`%s command <command-%s>`\n\n' % (name, name)
rst += 'Description and examples: see :ref:`%s command <command-%s>`\n\n' % (name, real_name)
# command syntax
rst += 'Command syntax:\n\n'