I think the name could be in format
where the numbers are shown in the description chapter of
I use doc directory for the file in a repository.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Given that your man page is generated from other “source files”, I wouldn’t store it in the repository at all — in my experience, it’s best for a source repository to only store the files you’d actually want to modify directly, not generated files.
If you do want to store it (for example, to avoid requiring
help2man when building), since you don’t have a directory structure it’s fine to store it alongside the rest of your source files. The
<command_name>.<section_number> naming scheme you suggest is fine.