From 2b64fe576fc17f1a98ccfc72ebbf322a0cbe2247 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Sun, 3 Oct 2021 10:41:40 +0200 Subject: [PATCH] feat: description and custom title in help --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 93e52e6..e6b3892 100644 --- a/index.php +++ b/index.php @@ -13,7 +13,11 @@ function generateHelp($selectedModule) { } $helpConfig = require($additionalHelpPath); - echo "

Help for module \"$selectedModule\"

"; + $moduleTitle = $helpConfig['title'] ?? $selectedModule; + echo "

Help for module \"$moduleTitle\"

"; + if (isset($helpConfig['description'])) { + echo "

" . $helpConfig['description'] . "

"; + } echo "