YahnisElsts / plugin-update-checker

A custom update checker for WordPress plugins. Useful if you don't want to host your project in the official WP repository, but would still like it to support automatic updates. Despite the name, it also works with themes.
MIT License
2.21k stars 403 forks source link

Attractive proposal for development #555

Closed mehdi-najaran closed 7 months ago

mehdi-najaran commented 7 months ago

Hello good time First of all, thank you for your complete and excellent project. Respectfully, I had a suggestion, I would be happy to check it:

Now we have to manually put the raw html in the "" of the json file to provide the description and change log. If this section contains a lot of content, managing and changing it is annoying

The suggestion I had is to put the link of an html file for each section in json, so that file can be executed in the desired section.

for example :

"sections": {
    "description": "load_from_file:descriptions.html",
    "installation": "load_from_file:installation.html",
    "changelog": "load_from_file:changelog.html"
  }
YahnisElsts commented 7 months ago

There is already another, more complete solution for generating the metadata JSON: wp-update-server. When using that, you only need to write the description and changelog in the readme.txt file, like you would for a free plugin hosted on wordpress.org. The update server will automatically extract the readme from your ZIP file, parse it into sections, and include it in the JSON.

mehdi-najaran commented 7 months ago

I checked it now, it was interesting! But still I am more comfortable with the current project

I wish you implement this feature that I said!

YahnisElsts commented 7 months ago

Sorry, I don't think I'm going to make a second, separate implementation of this.