mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
modules documentation script: add anchor for '### Usage' sections
So that they are unique.
This commit is contained in:
parent
c7dfd2d17f
commit
782ed5d324
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user