mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
Add anchors for every vehicle in airframes reference
This commit is contained in:
committed by
Lorenz Meier
parent
7775953289
commit
8edc70d150
@@ -19,7 +19,6 @@ class MarkdownTablesOutput():
|
|||||||
|
|
||||||
for group in groups:
|
for group in groups:
|
||||||
if group.GetClass() not in type_set:
|
if group.GetClass() not in type_set:
|
||||||
#result += '\n<span id="type_%s"></span>\n' % group.GetType().lower()
|
|
||||||
result += '## %s\n\n' % group.GetClass()
|
result += '## %s\n\n' % group.GetClass()
|
||||||
type_set.add(group.GetClass())
|
type_set.add(group.GetClass())
|
||||||
|
|
||||||
@@ -88,6 +87,8 @@ class MarkdownTablesOutput():
|
|||||||
if maintainer != '':
|
if maintainer != '':
|
||||||
maintainer_entry = '<p>Maintainer: %s</p>' % (maintainer)
|
maintainer_entry = '<p>Maintainer: %s</p>' % (maintainer)
|
||||||
url = param.GetFieldValue('url')
|
url = param.GetFieldValue('url')
|
||||||
|
name_anchor='id="%s_%s_%s"' % (group.GetClass(),group.GetName(),name)
|
||||||
|
name_anchor=name_anchor.replace(' ','_').lower()
|
||||||
name_entry = name
|
name_entry = name
|
||||||
if url != '':
|
if url != '':
|
||||||
name_entry = '<a href="%s">%s</a>' % (url, name)
|
name_entry = '<a href="%s">%s</a>' % (url, name)
|
||||||
@@ -114,8 +115,8 @@ class MarkdownTablesOutput():
|
|||||||
else:
|
else:
|
||||||
outputs_entry = ''
|
outputs_entry = ''
|
||||||
|
|
||||||
result += ('<tr>\n <td style="vertical-align: top;">%s</td>\n <td style="vertical-align: top;">%s%s%s</td>\n\n</tr>\n' %
|
result += ('<tr %s>\n <td style="vertical-align: top;">%s</td>\n <td style="vertical-align: top;">%s%s%s</td>\n\n</tr>\n' %
|
||||||
(name_entry, maintainer_entry, airframe_id_entry,
|
(name_anchor, name_entry, maintainer_entry, airframe_id_entry,
|
||||||
outputs_entry))
|
outputs_entry))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user