赞
踩
最近为了为了增加一些Ardupilot Wiki内容,对Wiki的编辑提交步骤整理一下,以便后续工作的展开。
修改过程大致可以分为两大类:
原文链接详见:Wiki Editing - Quick Edits
Create a Github account if you do not have one already
没有Github账号的同学,需要首先申请Github账号。
注:如果遇到任何问题,请仔细阅读帮助文档Get started with GitHub documentation。
Find the page you wish to edit and click the Edit on GitHub link on the top right of the page to be taken to its source, Select the Edit this file icon
首先,在Ardupilot Wiki上,找到需要修改的页面。
然后,在网页右上方找到Edit on Github
链接,点击进入。
Make the changes in the “Edit file” tab and use the “Preview changes” tab to check the change.
Note: links to other wiki pages are not rendered properly and will appear with :ref:` in front
At the bottom of the page under “Commit changes”
当有修改变动后,【Commit changes】会变亮,此按钮可以提交修改。
When taken to the “Open a pull request” screen, press the “Create pull request” button
此时,git库上,会新增一个分支来保存这个改动。
$ git pull Already up to date. daniel@palfocus:~/ArduPilot/ardupilot_wiki$ git pull remote: Enumerating objects: 21, done. remote: Counting objects: 100% (21/21), done. remote: Compressing objects: 100% (15/15), done. remote: Total 21 (delta 6), reused 10 (delta 5), pack-reused 0 Unpacking objects: 100% (21/21), 123.80 KiB | 248.00 KiB/s, done. From github.com:lida2003/ardupilot_wiki * [new branch] patch-3 -> origin/patch-3 Already up to date. $ git checkout patch-3 Branch 'patch-3' set up to track remote branch 'patch-3' from 'origin'. Switched to a new branch 'patch-3' $ git log -n 1 commit 98f5a52e7b38ae9a63c2cc0db1569ae169c59995 (HEAD -> patch-3, origin/patch-3) Author: Daniel Li <lida_mail@163.com> Date: Wed Nov 1 04:55:29 2023 +0800 Test and Drop Test and Drop
这个操作主要问题在于需要动到文件的增加和删除,此时涉及:
$ git clone git@github.com:lida2003/ardupilot_wiki.git
详细可以参考:Wiki Editing - Setting Up the Environment
一般Linux原生态环境是兼容性最好的,其他虚拟机之类,个人并不推荐。
在ubuntu上安装编译工具:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
$ ./Sphinxsetup.sh
编译html文档命令如下:
$ cd ardupilot_wiki
$ python3 update.py (to build all wikis)
$ python3 update.py --site copter (to build just the copter wiki)
$ python3 update.py --site plane (to build just the plane wiki)
$ python3 update.py --site rover (to build just the rover wiki)
$ python3 update.py --site dev (to build just this developer wiki)
编译构建html文档位置
$ git branch patch-4
$ git add .
$ git commit -m "Copter: change......"
$ git push
注意事项
略,不再赘述,详见:Creating a pull request
详见:Wiki Infrastructure Overview
. |-- Dockerfile |-- LICENSE |-- Makefile |-- README.md |-- Sphinxsetup.bat |-- Sphinxsetup.sh |-- Vagrantfile |-- antennatracker // ATT天线 |-- ardupilot // 官网主页 |-- blimp // 飞艇,气球 |-- build_parameters.py |-- common // 通用页面 |-- common_conf.py |-- copter // 多旋翼 |-- dev // 开发者 |-- frontend |-- images |-- js |-- logos |-- mavproxy // mavprox |-- plane // 固定翼 |-- planner // mission planner |-- planner2 // APM Planner 2 |-- rover // 车 |-- rst_table.py |-- scripts |-- update.py `-- update.sh
A) 国内的环境有的时候是比较复杂的,因此,会给技术研发带来各种困难。真的对技术发展很不友好!
==> Build wiki failed, some kind of connection issue? #5743
B) 需要确认下是否安装python3-sphinx
,Sphinxsetup.sh
脚本似乎并未将spinx安装成功。
$ sudo apt-get install python3-sphinx
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。