refactor: Append utm_source parameter to documentation URL

This commit is contained in:
Andras Bacsai 2024-06-04 12:59:35 +02:00
parent 1bd76b0e07
commit cfe2f889a4

View File

@ -63,6 +63,7 @@ private function process_file($file)
$documentation = collect(preg_grep('/^# documentation:/', explode("\n", $content)))->values();
if ($documentation->count() > 0) {
$documentation = str($documentation[0])->after('# documentation:')->trim()->value();
$documentation = str($documentation)->append('?utm_source=coolify.io');
} else {
$documentation = 'https://coolify.io/docs';
}