From 782ed5d32474ad1bd3028b3d6ab286569bf0cf6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= <beat-kueng@gmx.net> Date: Fri, 9 Feb 2018 07:54:25 +0100 Subject: [PATCH] modules documentation script: add anchor for '### Usage' sections So that they are unique. --- Tools/px4moduledoc/markdownout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/px4moduledoc/markdownout.py b/Tools/px4moduledoc/markdownout.py index dc01a47c98..ce5e2b52c0 100644 --- a/Tools/px4moduledoc/markdownout.py +++ b/Tools/px4moduledoc/markdownout.py @@ -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 -- GitLab