mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 11:50:42 +02:00
36 lines
732 B
Bash
Executable File
36 lines
732 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
source $CURRENT_DIR/common.sh
|
|
|
|
SOURCE_DIR=$PWD
|
|
BUILD_DIR=$SOURCE_DIR"/build"
|
|
DOC_DIR=$BUILD_DIR"/doc"
|
|
|
|
|
|
if [ ! -d src ]; then
|
|
fail "src dir does not exists"
|
|
else
|
|
pass "src dir exits"
|
|
fi
|
|
|
|
|
|
info "Generation documentation"
|
|
mkdir -p $BUILD_DIR
|
|
cd $BUILD_DIR
|
|
if [ ! -d "m.css" ] ; then
|
|
info "Cloning m.css"; git clone git://github.com/mosra/m.css;
|
|
fi
|
|
cd m.css/documentation
|
|
|
|
info "Installing jinja2 and Pygments"
|
|
pip3 install jinja2 Pygments
|
|
|
|
info "Generating doxygen"
|
|
if [ "$1" == "clean" ]; then rm -fr $DOC_DIR; fi
|
|
|
|
./doxygen.py --debug $SOURCE_DIR/doc/Doxyfile-mcss
|
|
if [ "$1" == "open" ]; then
|
|
open $DOC_DIR/html/index.html
|
|
fi
|