-
Notifications
You must be signed in to change notification settings - Fork 15
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
wiki-tui is now packaged in Void repositories #221
Comments
Thank you @ethamck for packaging wiki-tui! The generation of a man page would certainly be possible. After a bit of research, I've found a documentation page detailing the automatic generation of a man page with the For the man page of the documentation, we cannot generate it automatically as the documentation is formatted for the website. We can, however, generate it manually with the man crate (see here). If we then consistently update the generation script when we make changes to the documentation, it should work. Again, what do you think about it? |
@all-contributors please add @ethamck for platform Note: did not work the first time, deleted my first comment |
I've put up a pull request to add @ethamck! 🎉 |
@ethamck would you mind adding the installation instructions to the docs and opening a PR? |
With all that said, I'm not sure that any of the documentation would be appropriate to convert to sway may be worth looking into as an example of a configuration file man page. They use the |
Okay, so when we include the generated man page in the cargo binary, the packaging script of each individual platform can then copy the man page to the designated location (or not if it doesn't want to). For the sake of simplicity, I would prefer having the man pages either in the root directory (but that's already pretty crowded) or in the
Thank you for the information on pandoc, it sounds very interesting! Basically, I want to prevent having to maintain two different file(s) for the configuration docs so we need a tool / format that: a compiles into a man page and b can be displayed in a documentation site on the web. I'm open to any suggestions from your end for what we can use for it. After looking a while on the web on how some other tools do this, I found not all that much. From what I can see, the program either exclusively uses man pages or exclusively uses a website for documentation (the website generated from some custom markdown). I believe I've found something to work with.
It would definitely require a bit more research and testing into it to see whether this would work out the way we want it to. Also we would have to structure the configuration documentation more like a man page (that would probably be advisable anyways). Currently, I don't have the time to do that alone because of the changes in the UI, but if you want you can try to get it working or develop a better solution! |
I've packaged
wiki-tui
into the Void Linux repositories and it should now be freely installable for users of the distro via# xbps-install -S wiki-tui
.void-linux/void-packages#45438
P.S. I'm not well versed on generating one from Rust, but a man page would be handy to generate for the program going forward. From what I can tell, the
wiki-tui -h
function returns text that would need to be converted to mandoc. Additionally, multiple sections of a program document can be specified, so it could be possible to runman 5 wiki-tui
for information on itsconfig.toml
format without having to find the website for documentation (which as of current you'd need to look up yourself if you installed the package just by browsing the repos).The text was updated successfully, but these errors were encountered: