feature/doc-to-md #82
No reviewers
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!82
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/doc-to-md"
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?
This PR changes the way documentation is handled.
The plain text files only readable by a text editor are now converted to manpages. This allows reading using man command everywhere and search with tools like apropos.
The .txt files were converted to .7setup.md files (so written in Markdown) and are converted at package build time by pandoc to man pages (troff).
The man section is '7setup' to be in section 7 but dodge any collision problem with already existing man pages in section 7 with the same name.
To get the documentation:
man build-rpm (will go through the search order)
To query this documentation specifically
man 7setup build-rpm
In the future other sections may be used or documentation may change to be in plain 7 section for instance.
TODO: flatten man pages in .spec file and install them
new flatten option to install_files.
TODO: pandoc the files to generate them.
Careful rpm automatically compress the files added to mandir.
Try to own them as a glob. The glob owning shoul be reserved to some kind of install, such as man pages. Make an option for that.
A clear function name own_file could be great.
Implementing an own function. It owns a directory or a file giving it the right attributes.
TODO: pandoc the files to generate them.
Careful rpm automatically compress the files added to mandir.
Try to own them as a glob. The glob owning shoul be reserved to some kind of install, such as man pages. Make an option for that.
When saying glob, it is intended for one file. Example: own "manpage.7setup*" meaning own this manpages regardless of its compression algorithm that you don't control.
WIP: feature/doc-to-mdto feature/doc-to-md