I have a distro with some cli scripts. One is a perl script and one is a c program. (I've been using c here and there and was very pleasantly surprised to see my Makefile.PL compile bin/code.c and take care of the rest without batting an eye. Wow.. I owe my predecessors..)
I've been embracing a practice of putting my documentation in separate .pod files. This helps maintenance- and gives that nice syntax highlighting in vim for pod- if you care about that.
Also, in my case with some c code, I can make a separate .pod file, since you likely can't embed pod in a .c source file.
Putting docs in .pod files works well for perl module files, but I am having some trouble getting the same to work for other stuff..
For example... if I have
lib/MyModule.pm and lib/MyModule.pod, there's no problem. I can access the docs via 'man MyModule'.
But if I have bin/myscript and bin/myscript.pod , I have problems. It works if I place the doc in lib/myscript.pod - or if I place the doc inline inside bin/myscript
Thus, is the rule of thumb here that any documentation should be organized into a lib/ hierarchy inside a distro (or also at the root?) ?
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |