-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetdocs.sh
More file actions
executable file
·38 lines (38 loc) · 1.36 KB
/
getdocs.sh
File metadata and controls
executable file
·38 lines (38 loc) · 1.36 KB
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
34
35
36
37
38
#!/bin/bash
echo "Installing Needed Applications"
apt-get install doxygen python3 python3-pip python3-setuptools tree
pip3 install mkdocs-material mkdocs-awesome-pages-plugin
echo "Done"
echo "Cloning Repository"
git config --global user.email "admin@derangedsenators.me"
git config --global user.name "buildbot"
echo "Removing old Documentation"
rm -r Documentation/
echo "Getting Documentations"
echo "Getting PlayerLink"
mkdir codedoc
mkdir docs
mkdir docs/PlayerLink/
mkdir docs/"Cops And Robbers"/
cd codedoc
git clone https://github.com/derangedsenators/playerlink.git
echo "Getting Cops and Robbers"
git clone https://github.com/derangedsenators/copsandrobbers.git
echo "Done... Building Doxygen Documentation"
cd playerlink
doxygen ../../Doxyfile
./../../doxygen/doxybook2 --input xml/ --output ../../docs/PlayerLink --config ../../doxygen/doxybookcfg_playerlink.json
cd ..
cd copsandrobbers
doxygen ../../Doxyfile
./../../doxygen/doxybook2 --input xml/ --output ../../docs/"CopsAndRobbers" --config ../../doxygen/doxybookcfg_copsandrobbers.json
cd ../..
echo "Done... Building Site with MKDOWN-material"
rm -r docs/PlayerLink/Files
rm -r docs/PlayerLink/Pages
rm -r docs/"Cops And Robbers"/Files
rm -r docs/"Cops And Robbers"/Pages
mv -v codedoc/playerlink/docs/* docs/PlayerLink/
mv -v codedoc/copsandrobbers/docs/* docs/"CopsAndRobbers"/
cp -R doxygen/overlays/. docs/
echo "All Done!"