refactor: Append utm_source parameter to documentation URL
This commit is contained in:
parent
1bd76b0e07
commit
cfe2f889a4
@ -63,6 +63,7 @@ class ServicesGenerate extends Command
|
|||||||
$documentation = collect(preg_grep('/^# documentation:/', explode("\n", $content)))->values();
|
$documentation = collect(preg_grep('/^# documentation:/', explode("\n", $content)))->values();
|
||||||
if ($documentation->count() > 0) {
|
if ($documentation->count() > 0) {
|
||||||
$documentation = str($documentation[0])->after('# documentation:')->trim()->value();
|
$documentation = str($documentation[0])->after('# documentation:')->trim()->value();
|
||||||
|
$documentation = str($documentation)->append('?utm_source=coolify.io');
|
||||||
} else {
|
} else {
|
||||||
$documentation = 'https://coolify.io/docs';
|
$documentation = 'https://coolify.io/docs';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user