Description
Please integrate the ability to display the contents of a module's README.md file directly within the module's configuration screen in the ProcessWire admin. This would be similar to what github or npmjs is doing.
Screenshot is taken from ModuleReleaseNotes which provides the functionality i mentioned.
Benefits
Many modules come with a README.md file that contains valuable information, such as setup instructions, configuration details, usage examples, and more. Currently, if developers want to show this information in the config screen, they would need to use the getInputfields method and manually add fields with markup, which can be time-consuming and prone to errors. Displaying the README.md content directly can simplify this and ensure that users always see the most updated documentation without having to leave the admin interface.
- Simplified Development: Module developers no longer need to duplicate instructions or information in the getInputfields method.
- Enhanced User Experience: End-users can access all essential module details without leaving the admin interface.
- Maintainability: One single source (the README.md file) ensures consistent and updated information is displayed, reducing the likelihood of outdated or conflicting instructions.
Proposed Implementation:
- Check for the existence of a README.md file in the module's directory.
- If the file exists, parse its Markdown content and convert it to HTML.
- Display the HTML content in a dedicated section on the module's configuration screen.
This way, whenever the README.md is updated, the changes would automatically reflect in the module's config screen without any additional adjustments.
I think that this feature would be a valuable addition, streamlining both the module development and configuration processes. I would greatly appreciate your consideration of this request and am open to any feedback or further discussions.