Add docblocks to ContentAPI and handleGuide

This commit is contained in:
2026-07-28 14:40:55 +02:00
parent 890510c4c6
commit 3bb16ff116
3 changed files with 101 additions and 0 deletions
+10
View File
@@ -1374,6 +1374,16 @@ function handleUsers(AdminAuth $auth, array $config): void
require __DIR__ . '/../admin/templates/layout.php';
}
/**
* Render the admin guide page from a markdown file
*
* Reads the guide file for the selected language, renders it through
* CommonMark (with HeadingPermalink IDs moved to heading elements for
* working deep links), and outputs it via the admin layout.
*
* @param AdminAuth $auth Admin authentication instance
* @param array $config Site configuration
*/
function handleGuide(AdminAuth $auth, array $config): void
{
$user = $auth->getCurrentUser();