mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 02:13:33 +08:00
Vuepress removal /changes for vitepress (#22972)
* Vuepress removal /changes for vitepress * generate_msg_docs.py - README is index in vitepress
This commit is contained in:
Vendored
-2
@@ -171,10 +171,8 @@ pipeline {
|
|||||||
sh('cp airframes.md PX4-user_guide/en/airframes/airframe_reference.md')
|
sh('cp airframes.md PX4-user_guide/en/airframes/airframe_reference.md')
|
||||||
sh('cp parameters.md PX4-user_guide/en/advanced_config/parameter_reference.md')
|
sh('cp parameters.md PX4-user_guide/en/advanced_config/parameter_reference.md')
|
||||||
sh('cp -R modules/*.md PX4-user_guide/en/modules/')
|
sh('cp -R modules/*.md PX4-user_guide/en/modules/')
|
||||||
sh('cp -R graph_*.json PX4-user_guide/.vuepress/public/en/middleware/') // vuepress
|
|
||||||
sh('cp -R graph_*.json PX4-user_guide/public/middleware/') // vitepress
|
sh('cp -R graph_*.json PX4-user_guide/public/middleware/') // vitepress
|
||||||
sh('cp -R msg_docs/*.md PX4-user_guide/en/msg_docs/')
|
sh('cp -R msg_docs/*.md PX4-user_guide/en/msg_docs/')
|
||||||
sh('cp -R failsafe_sim/* PX4-user_guide/.vuepress/public/en/config/failsafe') // vuepress
|
|
||||||
sh('cp -R failsafe_sim/* PX4-user_guide/public/config/failsafe') // vitepress
|
sh('cp -R failsafe_sim/* PX4-user_guide/public/config/failsafe') // vitepress
|
||||||
sh('cd PX4-user_guide; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
|
sh('cd PX4-user_guide; git status; git add .; git commit -a -m "Update PX4 Firmware metadata `date`" || true')
|
||||||
sh('cd PX4-user_guide; git push origin main || true')
|
sh('cd PX4-user_guide; git push origin main || true')
|
||||||
|
|||||||
@@ -81,13 +81,13 @@ if __name__ == "__main__":
|
|||||||
with open(output_file, 'w') as content_file:
|
with open(output_file, 'w') as content_file:
|
||||||
content_file.write(markdown_output)
|
content_file.write(markdown_output)
|
||||||
|
|
||||||
readme_markdown_file_link='- [%s](%s.md)' % (msg_name,msg_name)
|
index_markdown_file_link='- [%s](%s.md)' % (msg_name,msg_name)
|
||||||
if summary_description:
|
if summary_description:
|
||||||
readme_markdown_file_link+=" — %s" % summary_description
|
index_markdown_file_link+=" — %s" % summary_description
|
||||||
filelist_in_markdown+=readme_markdown_file_link+"\n"
|
filelist_in_markdown+=index_markdown_file_link+"\n"
|
||||||
|
|
||||||
# Write out the README.md file
|
# Write out the index.md file
|
||||||
readme_text="""# uORB Message Reference
|
index_text="""# uORB Message Reference
|
||||||
|
|
||||||
:::note
|
:::note
|
||||||
This list is [auto-generated](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/msg/generate_msg_docs.py) from the source code.
|
This list is [auto-generated](https://github.com/PX4/PX4-Autopilot/blob/main/Tools/msg/generate_msg_docs.py) from the source code.
|
||||||
@@ -98,6 +98,6 @@ Graphs showing how these are used [can be found here](../middleware/uorb_graph.m
|
|||||||
|
|
||||||
%s
|
%s
|
||||||
""" % (filelist_in_markdown)
|
""" % (filelist_in_markdown)
|
||||||
readme_file = os.path.join(output_dir, 'README.md')
|
index_file = os.path.join(output_dir, 'index.md')
|
||||||
with open(readme_file, 'w') as content_file:
|
with open(index_file, 'w') as content_file:
|
||||||
content_file.write(readme_text)
|
content_file.write(index_text)
|
||||||
|
|||||||
Reference in New Issue
Block a user