File tree Expand file tree Collapse file tree 6 files changed +26
-2
lines changed Expand file tree Collapse file tree 6 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 30
30
31
31
- name : Install prerequisites
32
32
run : |
33
- pip3 install -r requirements.txt -r requirements-dev.txt
33
+ pip3 install -r requirements.txt -r requirements-dev.txt -r requirements-docs.txt
34
34
pip3 install auditwheel twine
35
35
36
36
- name : Create wheel
44
44
run : |
45
45
ls -lh "wheelhouse/"
46
46
47
+ - name : Create docs
48
+ run : |
49
+ export PATH=$PATH:$HOME/.local/bin
50
+ make -C mavsdk html
51
+
47
52
- name : Upload to PyPi
48
53
env :
49
54
TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
54
59
export PATH=$PATH:$HOME/.local/bin
55
60
twine upload wheelhouse/*.whl
56
61
62
+ - name : Upload docs
63
+ env :
64
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
65
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
66
+ if : startsWith(github.ref, 'refs/tags/')
67
+ run : |
68
+ export PATH=$PATH:$HOME/.local/bin
69
+ other/tools/upload_docs.sh
70
+
71
+
72
+
57
73
ubuntu20-other :
58
74
name : Ubuntu 20.04 ${{ matrix.arch }}
59
75
runs-on : ubuntu-20.04
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ Note: MAVDSK-Python runs `mavsdk/bin/mavsdk_server` when `await drone.connect()`
110
110
Make sure the version tag is set correctly before generating new documentation.
111
111
112
112
```
113
- pip3 install sphinx numpydoc
113
+ pip3 install -r requirements-docs.txt
114
114
make -C mavsdk html
115
115
```
116
116
Original file line number Diff line number Diff line change 59
59
# relative to this directory. They are copied after the builtin static files,
60
60
# so a file named "default.css" will overwrite the builtin "default.css".
61
61
html_static_path = ['nature_adapted/static' ]
62
+
63
+ html_favicon = "nature_adapted/static/favicon.png"
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ s3cmd put -m text/javascript mavsdk/build/html/_static/doctools.js s3://mavsdk-p
15
15
s3cmd put -m text/javascript mavsdk/build/html/_static/underscore.js s3://mavsdk-python-docs/_static/
16
16
s3cmd put -m text/javascript mavsdk/build/html/_static/documentation_options.js s3://mavsdk-python-docs/_static/
17
17
s3cmd put -m text/javascript mavsdk/build/html/_static/language_data.js s3://mavsdk-python-docs/_static/
18
+ s3cmd put -m text/css mavsdk/build/html/_static/nature.css s3://mavsdk-python-docs/_static/
19
+ s3cmd put -m text/css mavsdk/build/html/_static/basic.css s3://mavsdk-python-docs/_static/
20
+
21
+ s3cmd put -m image/x-icon mavsdk/build/html/_static/favicon.png s3://mavsdk-python-docs/
18
22
19
23
# Set it all to public
20
24
s3cmd setacl -r s3://mavsdk-python-docs --acl-public
Original file line number Diff line number Diff line change
1
+ sphinx>=3.3.0
2
+ numpydoc>=1.1.0
You can’t perform that action at this time.
0 commit comments