forked from datacontroller/docs.datacontroller.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·31 lines (20 loc) · 915 Bytes
/
build.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
#!/bin/bash
####################################################################
# PROJECT: Data Controller Docs #
####################################################################
## Create regular mkdocs docs
echo 'extracting licences'
OUTFILE='docs/licences.md'
cat > $OUTFILE <<'EOL'
<!-- this page is AUTOMATICALLY updated!! -->
# Data Controller for SAS® - Source Licences
## Overview
Data Controller source licences are extracted automatically from our repo using the [license-checker](https://www.npmjs.com/package/license-checker) NPM module
```
EOL
license-checker --production --relativeLicensePath --direct --start ../dcfrontend >> docs/licences.md
echo '```' >> docs/licences.md
echo 'building mkdocs'
mkdocs build --clean
#mkdocs serve
rsync -avz --exclude .git/ --del -e "ssh -p 722" site/ [email protected]:/home/macropeo/docs.datacontroller.io