From 7449faaa76a5b4008fd51a6562cca2e0a852ea6b Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Fri, 1 May 2020 17:33:13 +0200 Subject: Clean up code and improve documentation This switches the code documentation genarator (we're now using phpdoc instead of NaturalDoc). Also various small code cleanup tasks: - Remove unused code - Get rid of `and` / `or`, we're using `&&` / `||` now - Adding missing return values - Helping PhpStorm to detect some dynamically called functions (mark_builtin_callable in Transcompiler) - Reword transcompiling => compiling in documentation --- mkdocu.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'mkdocu.sh') diff --git a/mkdocu.sh b/mkdocu.sh index 7f64e18..48b25b0 100755 --- a/mkdocu.sh +++ b/mkdocu.sh @@ -1,12 +1,4 @@ #!/bin/sh -if ! ndpath=`which NaturalDocs 2>/dev/null`; then -if ! ndpath=`which naturaldocs 2>/dev/null`; then -echo "NaturalDocs could not be found!" >/dev/stderr -exit 1 -fi; fi - - -test -d docu/nd || mkdir docu/nd -test -d docu/nd_project_dir || mkdir docu/nd_project_dir -$ndpath -i src/ste -o html docu/nd -p docu/nd_project_dir +[ -d docu/phpdoc ] || mkdir docu/phpdoc +./vendor/bin/phpdoc -d src -t docu/phpdoc -- cgit v1.2.3-54-g00ecf