mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
31 lines
853 B
Bash
Executable File
31 lines
853 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DOCS_SOURCE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
FILES_DIR=$DOCS_SOURCE_DIR/../../files
|
|
OUTPUT_DIR=$DOCS_SOURCE_DIR/reference/lua-scripting/generated_html
|
|
|
|
PATH=$PATH:~/lua-5.1.5/src
|
|
eval "$(luarocks path)"
|
|
|
|
if [ ! command -v openmwluadocumentor &> /dev/null ]; then
|
|
if [ -f /.dockerenv ] || [ -f /home/docs/omw_luadoc_docker ]; then
|
|
./install_luadocumentor_in_docker.sh
|
|
fi
|
|
fi
|
|
if [ ! command -v openmwluadocumentor &> /dev/null ]; then
|
|
echo "openmwluadocumentor not found; See README.md for installation instructions."
|
|
exit
|
|
fi
|
|
|
|
rm -f $OUTPUT_DIR/*.html
|
|
|
|
data_paths=$($DOCS_SOURCE_DIR/luadoc_data_paths.sh)
|
|
|
|
cd $FILES_DIR/lua_api
|
|
openmwluadocumentor -f doc -d $OUTPUT_DIR openmw/*lua
|
|
cd $FILES_DIR/data
|
|
for path in $data_paths
|
|
do
|
|
openmwluadocumentor -f doc -d $OUTPUT_DIR $path
|
|
done
|