After a little longer thinking, here is my idea.
The problem strikes only for installed plugins, that are not (yet) registered at the Kanboard directory. Once registered, the PM can take the README-URL from the file plugins.json, same as for other has_xxx properties.
Of course, we could add another function for this to file Plugin.php:
public function getPluginReadMe()
{
return 'https://wherever/it/is';
}
Unfortunately, this would require changes to the Loader code. This won’t be accepted, I assume. So forget it.
But if we put a new file Plugin.json in each repo, with the same content that will be copy/pasted for the registration later, let’s name it a draft, we’d have all the info at hand. If the file is missing/forgotten etc., the PM will not show a README link. Having such a local Plugin.json file is absolutely voluntary.
Example Plugin.json:
{
"KanboardPermalink": {
"title": "KanboardPermalink",
"version": "1.0.0",
"author": "Theobald Software GmbH, aljawaid",
"license": "MIT",
"description": "Adds a convenient link to copy the task url to the clipboard",
"homepage": "https://github.com/theobald-software/KanboardPermalink",
"readme": "https://github.com/theobald-software/KanboardPermalink/blob/master/README.md",
"download": "https://github.com/theobald-software/KanboardPermalink/releases/download/v1.0/KanboardPermalink-1.0.zip",
"remote_install": true,
"compatible_version": ">=1.2.20",
"has_schema": false,
"has_overrides": false,
"has_hooks": true,
"last_updated": "2022-11-09"
}
}
Unfortunately, there is some data duplication for registered plugins here. But for unregistered but installed plugins, the PM all information you need.
I would immediately agree to publish such a file whenever I’d write a plugin. It’s similar to package.json for npm projects.