Skip to content

Commit

Permalink
Generate markdown to messages/common.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Oct 31, 2017
1 parent 18f594e commit 9748e21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/mavlink_gitbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@
import requests
from bs4 import BeautifulSoup as bs
import re
import os

xml_file_url = "https://raw.github.com/mavlink/mavlink/master/message_definitions/v1.0/common.xml";
xsl_file_url= "https://raw.github.com/mavlink/mavlink/master/doc/mavlink_to_html_table_gitbook.xsl";
output_file_name = "./message-definitions.md"
output_dir = "./messages/"
output_file_name = output_dir+"common.md"
if not os.path.exists(output_dir):
os.makedirs(output_dir)


# Get files from published URLs
r = requests.get(xml_file_url)
Expand Down

0 comments on commit 9748e21

Please sign in to comment.