I wanted to bring this to the forums as we don’t really have any kind of policy on it.
Currently in the codebase we have a toplevel folder called Documentation where some of the docs live. We also have the wiki. There are also some scattered help docs throughout the codebase.
I think now is a good time to really begin the consolidation process of the documentation. I suggest we evaluate the files under the top level Documentation folder (With the exception of the INSTALL file, most of that folder hasn’t been touched in years) and either make a plan to migrate them or just remove them. Same for the help docs throughout the codebase.
The thought here is we need a single source of truth for documentation - fracturing the documentation means a harder road for maintenance and could lead to easily outdated documentation. The new Drupal system will be multi-lingual which allows for translations. If we wanted to embed the documentation into the codebase we could write a pipeline to export from Drupal and format it to something we could embed.
My recommendation is no inline documentation in the codebase/UI and instead comprehensive documentation on the website.
For the sake of clarity - I think inline documentation is a bad idea. Most modern products I see don’t do much inline help/docs, instead they point to their website (PHPStorm is an example of this). Additionally, by placing the docs in the codebase we make it harder for documentation creators to contribute. Instead of logging into a user-friendly website and submitting translations, writing guides, or providing how-to documents, they would have to successfully install OpenEMR locally and learn how to traverse the file hierarchy just to contribute documentation.
Documentation writers should not have that burden, let’s keep the bar low for docs contributions.