docs.datacontroller.io/build.sh

35 lines
1.0 KiB
Bash
Raw Normal View History

2019-01-26 23:24:01 +00:00
#!/bin/bash
####################################################################
# PROJECT: Data Controller Docs #
####################################################################
2021-04-30 13:18:41 +00:00
# update slides
npx @marp-team/marp-cli docs/slides/innovation/innovation.md -o ./docs/slides/innovation/index.html
2019-01-26 23:24:01 +00:00
## Create regular mkdocs docs
2020-04-16 08:44:57 +00:00
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
2020-04-16 20:06:52 +00:00
```
2020-04-16 08:44:57 +00:00
EOL
license-checker --production --relativeLicensePath --direct --start ../dcfrontend >> docs/licences.md
2020-04-16 20:06:52 +00:00
echo '```' >> docs/licences.md
2020-04-16 08:44:57 +00:00
2019-01-26 23:24:01 +00:00
echo 'building mkdocs'
mkdocs build --clean
#mkdocs serve
rsync -avz --exclude .git/ --del -e "ssh -p 722" site/ macropeo@77.72.0.226:/home/macropeo/docs.datacontroller.io