Browse Source

Fix up so image links work properly

sbg
Hamish Willee 8 years ago committed by Lorenz Meier
parent
commit
5af62c8e49
  1. 2
      Tools/px4airframes/markdownout.py
  2. 2
      Tools/px_process_airframes.py

2
Tools/px4airframes/markdownout.py

@ -28,7 +28,7 @@ class MarkdownTablesOutput(): @@ -28,7 +28,7 @@ class MarkdownTablesOutput():
image_name = group.GetImageName()
result += '<div>\n'
if image_name != 'AirframeUnknown':
result += '<img src="../images/airframes/types/%s.svg" width="29%%" style="max-height: 180px;"/>\n' % (image_name)
result += '<img src="../../assets/airframes/types/%s.svg" width="29%%" style="max-height: 180px;"/>\n' % (image_name)
# check if all outputs are equal for the group: if so, show them
# only once

2
Tools/px_process_airframes.py

@ -63,7 +63,7 @@ def main(): @@ -63,7 +63,7 @@ def main():
" (default FILENAME: airframes.xml)")
parser.add_argument("-m", "--markdown",
nargs='?',
const="airframes.md",
const="airframe_reference.md",
metavar="FILENAME",
help="Create Markdown file"
" (default FILENAME: airframes_reference.md)")

Loading…
Cancel
Save