Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 7c4e1deb authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Update docs gitlab build script

parent 4f5743c2
No related merge requests found
Pipeline #4515 passed with stages
in 13 minutes and 11 seconds
...@@ -38,18 +38,21 @@ HERE ...@@ -38,18 +38,21 @@ HERE
echo "**** Updating $PAGES_URL/$VER_DIR ****" echo "**** Updating $PAGES_URL/$VER_DIR ****"
# Clean build directory # Clean _build directory
make clean BUILDDIR=public/$VER_DIR make clean
# Build and serve HTML # HTML: Build, clean and serve
make html BUILDDIR=public/$VER_DIR make html
mv public/$VER_DIR/html/* public/$VER_DIR/ rm -rf public/$VER_DIR/
mv _build/html/* public/$VER_DIR/
# Build, optimize, and serve PDF # PDF: Build, optimize, and serve
make latexpdf BUILDDIR=public/$VER_DIR make latexpdf
pdfcpu optimize public/$VER_DIR/latex/beagleboard-docs.pdf pdfcpu optimize _build//latex/beagleboard-docs.pdf
mv public/$VER_DIR/latex/beagleboard-docs.pdf public/$VER_DIR/ mv _build/latex/beagleboard-docs.pdf public/$VER_DIR/
rm -rf public/$VER_DIR/latex
# Clean _build directory (optional)
make clean
# Update docs.beagleboard.org # Update docs.beagleboard.org
if [ "$CI_COMMIT_TAG" != "" ]; then if [ "$CI_COMMIT_TAG" != "" ]; then
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment