Aded documentation module

This commit is contained in:
Mark Gregory
2026-06-12 15:23:17 +01:00
parent 7bc8f20ed5
commit a2c68bc4dc
40 changed files with 506 additions and 19 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
use Modules\Documentation\Support\ModuleInfo;
if (! function_exists('documentation_feature_enabled')) {
/**
* Check if a feature is enabled in the config.
*/
function documentation_feature_enabled(string $key): bool
{
return (bool) config(ModuleInfo::nameLower().".features.{$key}", false);
}
}