Convert documentation to man pages #32
Labels
No labels
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
obsolete
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
yestax/setup#32
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Man pages are preffered over plain text.
They can be seen with man command (Using vim for instance).
They can be searched with apropos command.
It's difficult to make one by hand but it may be easy with pandoc.
Also they may be stored as markdown and generated during package build via dh_auto_build in rules.
https://eddieantonio.ca/blog/2015/12/18/authoring-manpages-in-markdown-with-pandoc/
$ pandoc -D man to get a template for man pages
to generate the file
$ pandoc --standalone --to man filestructure.7.md -o filestructure.7
to read it locally
$ man -l filestructure.7
It is possible to use a custom manual section, to not interact with any other one. It is possible to even use a string.
if stored in /usr/share/man/man
it can be queried with man
If no other names collide it can even be queried with man and will go through all the sections.
This should be useful because a lot of documentation are additional informations on existing utilities. Section 7 is great but can collide (example schroot uses section 7).
mansetup or mankb can be used for instance
A 'setup' man section is hard to do since man doesn't recognise setup as a section.
To properly work it needs an entry in /etc/manpath.config otherwise it just thinks it's a man page and search for it.
To avoid collision, an idea is to use a man subsection. For instance .8setup files in man8 dir. Then man search in the section order and can find another page before but it's okay since the page can still be queried with the 8setup fullname.
solved by #82