feat: point readme to raw url

This commit is contained in:
dyzulk
2026-01-18 19:02:30 +07:00
parent 7f75679f0a
commit 8d5548c73f

View File

@@ -102,8 +102,8 @@ if ($reposJson) {
'tags' => array_filter(array_map('trim', explode(',', $metadata['tags'] ?? ''))), 'tags' => array_filter(array_map('trim', explode(',', $metadata['tags'] ?? ''))),
'repo' => $repo['html_url'], 'repo' => $repo['html_url'],
'download' => $downloadUrl, 'download' => $downloadUrl,
// Pointing to EXTERNAL GitHub Repo for readme, as we don't host docs here // Point to RAW README for client-side fetching
'readme' => $repo['html_url'], 'readme' => "https://raw.githubusercontent.com/$orgName/{$repo['name']}/{$ref}/README.md",
'updated_at' => $repo['updated_at'] 'updated_at' => $repo['updated_at']
]; ];
echo " + Added: " . $metadata['plugin name'] . "\n"; echo " + Added: " . $metadata['plugin name'] . "\n";