mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Added more docker jobs and apply same naming convention as build jobs
This commit is contained in:
24
docker/build-docs/start.sh
Normal file
24
docker/build-docs/start.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Prepare environment
|
||||
cd /moose/
|
||||
mkdir -p build/tools
|
||||
mkdir -p build/doc
|
||||
|
||||
# Checkout luadocumentor
|
||||
cd /moose/build/tools
|
||||
if [ ! -f /moose/build/tools/luadocumentor/luadocumentor.lua ]
|
||||
then
|
||||
git clone --branch patch-1 --single-branch https://github.com/Applevangelist/luadocumentor.git
|
||||
fi
|
||||
|
||||
# Run luadocumentor
|
||||
cd /moose/build/tools/luadocumentor
|
||||
lua luadocumentor.lua -d /moose/build/doc '/moose/Moose Development/Moose'
|
||||
|
||||
# Copy generated files in the MOOSE_DOCS repo if it is already there
|
||||
if [ -d /moose/build/MOOSE_DOCS/Documentation ]; then
|
||||
rm -rf /moose/build/MOOSE_DOCS/Documentation
|
||||
mkdir -p /moose/build/MOOSE_DOCS/Documentation
|
||||
cp /moose/build/doc/* /moose/build/MOOSE_DOCS/Documentation/
|
||||
fi
|
||||
Reference in New Issue
Block a user