Perhaps with a switch (man --tldr) or something?
Wouldn't a project to add those short examples to manpages be good?
Perhaps with a switch (man --tldr) or something?
Wouldn't a project to add those short examples to manpages be good?
With a handful of commands i've got the tldr pages rendering in man:
mkdir /usr/local/share/man/man0/
pandoc -f markdown_github -t html https://raw.githubusercontent.com/tldr-pages/tldr/master/pages/common/tar.md > /usr/local/share/man/man0/tar.0.html
export MANPAGER="`which lynx` -stdin"
man 0 tar
tada.We really shouldn't be rewriting tools and fragmenting community effort to fit a new feature that is already 90% implemented.
edit: one idea I do like is having content that is easy to contribute to, such as man pages, in separate repositories. Contributing to open source projects for content writers can often be intimidating - having a pure text separate man page repo that all the distro's use would be great.
Distributions can then create documentation meta-repositories that include relevant doc repo's as submodules.
If i'm a debian volunteer and I edit a typo in the man page for tar it gets pushed/pull-req up the to main tar repo from where it gets pulled out everywhere else
Not an entirely well formed idea, but the goal is to both lower the threshold for contributing documentation to project and second eliminate the duplicate effort in currently maintaining docs (which the OP project is only further complicating). Git can sit underneath what to contributors looks like nothing more than a wiki.
[1] https://help.github.com/articles/editing-files-in-your-repos...
https://en.m.wikipedia.org/wiki/Man_page#3
Maybe [ed:1e] for "general commands - examples"?
man page categories (1, 2, 3, etc.) are organized by type of command. See: http://www.schweikhardt.net/man_page_howto.html#q2
Reviewing the convention for man pages, it seems like adding an EXAMPLES section to existing man pages is the correct way to augment the documentation.
Definitely support your position that improving existing documentation is the way to go. Just wanted to share my research on how man pages are supposed to work.
I might do some work on this - import the examples from tldr and bro and get them into the man pages, and hopefully find a way so that man pages are easier to contribute to.
See man(7), man-pages(7)