2017-04-26 11:12:08 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "- Install dependencies"
|
|
|
|
sudo apt-get install doxygen make
|
2017-04-30 10:36:11 +08:00
|
|
|
sudo pip install breathe sphinx awscli sphinx_rtd_theme
|
|
|
|
|
2017-05-04 03:18:03 +08:00
|
|
|
cd ${MAIN_REPO_STATE}
|
2017-04-30 10:36:11 +08:00
|
|
|
source zephyr-env.sh
|
|
|
|
|
2017-05-04 03:18:03 +08:00
|
|
|
cp -a /build/IN/docs_theme_repo/gitRepo doc/themes/zephyr-docs-theme
|
2017-04-30 10:36:11 +08:00
|
|
|
ls -la doc/themes
|
2017-04-26 11:12:08 +08:00
|
|
|
|
|
|
|
echo "- Building docs..."
|
2017-04-30 10:36:11 +08:00
|
|
|
make DOC_TAG=daily htmldocs > doc.log 2>&1
|
|
|
|
echo "- Uploading to AWS S3..."
|
|
|
|
aws s3 sync --quiet --delete doc/_build/html s3://zephyr-docs/online/dev
|
2017-04-26 11:12:08 +08:00
|
|
|
|
2017-04-30 10:36:11 +08:00
|
|
|
echo "Done"
|