man
Summary
Section titled “Summary”zinit-annex-man automatically generates man pages for installed plugins and snippets — both from their README.md files (via ronn) and as code-documentation pages (via zshelldoc) — and provides the zman command to view them.
Details
Section titled “Details”-
Problem it solves: Plugin README files and source code documentation are not accessible as man pages by default. This annex hooks into plugin clone and update events to generate and register manpages on the fly.
-
Capabilities added:
-
Dependencies:
ruby(withgem),ruby-dev,tree, andzshelldocmust be installed before loading this annex. -
Install:
Terminal window zinit light zdharma-continuum/zinit-annex-man
Examples
Section titled “Examples”# View the README-based manpage for a pluginzman zinit-annex-man
# View the code-documentation manpage for a plugin (use full plugin name)zman -c zdharma-continuum/zinit-annex-manCaveats / Common Mistakes
Section titled “Caveats / Common Mistakes”- All dependencies (
ruby,ruby-dev,tree,zshelldoc) must be present before loading the annex, or manpage generation will silently fail. - Manpages are generated at clone and update time; plugins installed before the annex is loaded will not have pages until they are updated.