Add config & script for generating HTML documentation with LDoc
This commit is contained in:
13
docs/gendoc.sh
Normal file
13
docs/gendoc.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOCS="$(dirname $(readlink -f $0))"
|
||||
ROOT="$(dirname ${DOCS})"
|
||||
CONFIG="${DOCS}/config.ld"
|
||||
|
||||
cd "${ROOT}"
|
||||
|
||||
# Clean old files
|
||||
rm -rf "${DOCS}/api.html" "${DOCS}/scripts" "${DOCS}/modules"
|
||||
|
||||
# Create new files
|
||||
ldoc -c "${CONFIG}" -d "${DOCS}" -o "api" "${ROOT}"
|
||||
Reference in New Issue
Block a user