forked from ArduPilot/ardupilot_wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSphinxsetup.sh
executable file
·33 lines (25 loc) · 1.16 KB
/
Sphinxsetup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
set -x
if [ "$UID" -gt 0 ]; then
echo "Sorry, this script must be run as ROOT!"
exit 1
fi
DISTRIBUTION_CODENAME=$(lsb_release -i -s)
if [ ${DISTRIBUTION_CODENAME} == 'Ubuntu' ]; then
add-apt-repository universe
fi
apt-get -y update
apt-get install -y unzip git imagemagick curl wget make python3 python-is-python3
# Get pip through the official website to get the lastest release
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && rm -f get-pip.py
# Install sphinx
pip install -U sphinx==1.8.3 || pip3 install -U sphinx==1.8.3
# Install sphinx theme from ArduPilot repository
pip install git+https://github.com/ArduPilot/sphinx_rtd_theme.git -UI || pip3 install git+https://github.com/ArduPilot/sphinx_rtd_theme.git -UI
# and a youtube plugin:
pip install git+https://github.com/sphinx-contrib/youtube.git -UI || pip3 install git+https://github.com/sphinx-contrib/youtube.git -UI
# and a vimeo plugin:
pip install git+https://github.com/ArduPilot/sphinxcontrib.vimeo.git -UI || pip3 install git+https://github.com/ArduPilot/sphinxcontrib.vimeo.git -UI
# Say that we finish
echo "Setup completed successfully !"