From a12b8eb0dd4ce23090ba8d7dc5a646d0900a5d58 Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Mon, 19 Jul 2021 17:34:36 -0700 Subject: [PATCH] Change API reference URL --- README.md | 2 +- docs/gendoc.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d779db0..f0da2fc 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,6 @@ Settings: - [Forum thread](https://forum.minetest.net/viewtopic.php?t=26685) - [Original forum thread](https://forum.minetest.net/viewtopic.php?t=11891) - [Git repo](https://github.com/AntumMT/mod-sneeker) -- [Reference](https://antummt.github.io/mod-sneeker/docs/api.html) +- [Reference](https://antummt.github.io/mod-sneeker/docs/reference/ - [Changelog](changelog.txt) - [TODO](TODO.txt) diff --git a/docs/gendoc.sh b/docs/gendoc.sh index 7ed4130..9af5ed7 100644 --- a/docs/gendoc.sh +++ b/docs/gendoc.sh @@ -1,13 +1,13 @@ #!/bin/bash -DOCS="$(dirname $(readlink -f $0))" -ROOT="$(dirname ${DOCS})" -CONFIG="${DOCS}/config.ld" +docs="$(dirname $(readlink -f $0))" +root="$(dirname ${docs})" +config="${docs}/config.ld" -cd "${ROOT}" +cd "${root}" # Clean old files -rm -rf "${DOCS}/api.html" "${DOCS}/scripts" "${DOCS}/modules" +rm -rf "${docs}/reference" # Create new files -ldoc -c "${CONFIG}" -d "${DOCS}" -o "api" "${ROOT}" +ldoc -c "${config}" -d "${docs}/reference" "${root}"