-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(tools): Introduce tool to generate man pages #2023
Conversation
Nice, thanks for this @teodoradriann Some initial mentions from me:
That's all from my side, after this is done I'll leave some code comments also |
Okay, will do and update |
ca654f0
to
7bde584
Compare
Hey @teodoradriann, are you up for some more rounds of reviews or do you want me to take over this PR to get it to shape? Let me know how your availability is looking Edit: I pushed my fixes (hopefully ok with you) |
7bde584
to
6331a4b
Compare
6331a4b
to
a87ed38
Compare
This is an initial version of the auto-generator of man pages for kraftkit. This parses help messages and generates man files which can be afterwards installed. To generate them, use the new `make` command `make man`. Signed-off-by: Teodor Adrian Miron <teodormiron75@gmail.com> Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Signed-off-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
a87ed38
to
7ce3d21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Reviewed-by: Alexander Jung alex@unikraft.io
Approved-by: Alexander Jung alex@unikraft.io
Prerequisite checklist
make fmt
on your commit series before opening this PR;Description of changes
I updated the auto-generating documentation script located at
tools/gendocs/main.go
by adding two new functionalities.Now, after compiling the program, you can use one of the following flags:
•
--man or -m:
Automatically generates all KraftKit documentation as .1 files, located in kraftkit/doc/man.•
--install or -i:
Installs all the files found in the man folder system-wide and updates the mandb.GitHub-Closes: #1704