diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..998f601 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +.* export-ignore diff --git a/docs/config.ld b/.ldoc/config.ld similarity index 100% rename from docs/config.ld rename to .ldoc/config.ld diff --git a/.ldoc/gendoc.sh b/.ldoc/gendoc.sh new file mode 100644 index 0000000..f678430 --- /dev/null +++ b/.ldoc/gendoc.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +d_ldoc="$(dirname $(readlink -f $0))" +d_root="$(dirname ${d_ldoc})" +d_docs="${d_root}/docs" +f_config="${d_ldoc}/config.ld" + +cd "${d_root}" + +# Clean old files +rm -rf "${d_docs}/api.html" "${d_docs}/scripts" "${d_docs}/modules" "${d_docs}/source" +# Create new files +ldoc -c "${f_config}" -d "${d_docs}" -o "api" "${d_root}" diff --git a/docs/gendoc.sh b/docs/gendoc.sh deleted file mode 100644 index 0c3a0dc..0000000 --- a/docs/gendoc.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/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" "${DOCS}/source" -# Create new files -ldoc -c "${CONFIG}" -d "${DOCS}" -o "api" "${ROOT}"