Following up from this "Inline user guides" forum topic: https://farmos.discourse.group/t/inline-user-guides/680
I'd like to propose we leverage the Drupal core help and help_topics modules for providing this kind of self-hosted inline user guide for farmOS.
Some core documentation on help topics: https://www.drupal.org/docs/develop/managing-a-drupalorg-theme-module-or... β
Features of this approach:
help
module provides an existing "HelpSection" plugin + UIhelp_topics
module provides a frame work for providing individual help topics plugins via twig files or php classesI've attached a screenshot of what the /admin/help page looks like with the help_topics module enabled. The core help
module is what enables this page itself as well as the "Module overview" section on the bottom. The help_topics
module provides the "Topics" section and is designed to be a layer above the simple "module overview", similar (as I understand) to our farmOS user guide. These help topics can be provided by any module, and only the "top-level" topics are displayed within this "Topics" section. Individual topics can also specify "related topics" that are rendered (bi-directionally) as links at the bottom of a topic page.
Without any custom code farmOS could simply add some top-level topics that would be displayed in this "Topics" section. But it would be ideal if farmOS topics could have their own section, since only site admins need to see these other Drupal topics. In my investigation I found it's simple to create additional sections - in the screenshot I included an additional "Farm topics" section. This is where dedicated farmOS help topics could be displayed!
The missing link is trying to leverage the existing help_topics framework, but put them in our own dedicated section. I actually chatted with @jhodgdon in the Spokane drupal meetup for ideas on this. We might be able to extend the help_topics HelpSection plugin itself and/or implement some alter hooks to change which help topics end up being displayed in the farmOS section. OR it might be easier to go a step further and extend the help topics plugin + discovery to check for help topics in a dedicated farm_help_topics
directory. This way we'd have more control with our own plugin, but be inheriting the core help_topics features. ***errr this might break translations on localize.drupal.org though.
Also notable is this "config help" sandbox project from @jhodgdon (might not be working at the moment): https://www.drupal.org/sandbox/jhodgdon/2369943 β Originally the help_topics module was going to use config entities, but they decided against it because config entities are not forced to say in-sync with the source code (site admins would have to update the config after changes). Makes sense, and inline with our desire for version controlled docs! But help topics as config is generally interesting as well - a farm manager could create dedicated help topics for tasks on the farm that workers could reference... :-)
N/A
help_topics
plugin manager to load "Farm help topics" from a dedicated farm_help_topics
directory within each module.Decide on an approach. Figure out if translations would work in our own directory. Implement! And provide docs :-)
Inline user guides/module documentation available from the farmOS UI. At /admin/help and/or dedicated menu/toolbar items?
New "farm help topics" plugin.
None.
Active
3.0
Documentation
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.