modules documentation script: add anchor for '### Usage' sections

So that they are unique.
This commit is contained in:
Beat Küng 2018-02-09 07:54:25 +01:00 committed by Daniel Agar
parent c7dfd2d17f
commit 782ed5d324
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ The generated files will be written to the `modules` directory.
result += "%s\n" % doc
usage_string = module.usage_string()
if len(usage_string) > 0:
result += "### Usage\n```\n%s\n```\n" % usage_string
result += "### Usage {#%s_usage}\n```\n%s\n```\n" % (module.name(), usage_string)
self._outputs[category] = result