-
-
Notifications
You must be signed in to change notification settings - Fork 842
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
Add man (1) entry #77
Comments
Good suggestion, thank you! Does anyone know a modern/easy way to write man pages? For another project, I was using pandoc to create them from markdown pages (see here), but I'm not sure if that's also the best option here. In particular, I would like to avoid having to keep man page and |
It seems ripgrep, the other big rust project, uses pandoc as well. |
@sharkdp I know how to write man pages in both It would be really nice if it wasn't written in pandoc first since some of the man pages generated by pandoc is generally ugly (like code snippets). |
@sharkdp Which one would you like it to be in? |
@pickfire I don't know neither of these tools, so I would trust your judgement. |
@sharkdp Here they are, I have both of them, I think it will be easier to work with the one that is easily understandable in this case. I will do a simple comparison of both of them. roff (troff)
mdoc
So still up to you to choose which one do you all wanted to include. By the way, I haven't fully included all the examples and I wrote some of the options myself (not from |
@pickfire Thank you very much! mdoc looks cool, but is it fully supported on Linux? I found this on Wikipedia:
Also, if I open
|
@sharkdp Yeah, it have that header. Just tell me which one you like (probably easier to maintain for you all), can I work on this as part of my hacktoberfest? Note: Maybe I will find another task here as well. |
Ok, if I have to choose, I'd go with roff for now.
Of course! Any progress on this (or any other task) would be greatly appreciated. |
@sharkdp Anything that needs to improve over the existing? Like addon to examples or modify the options to suit |
The current one looks pretty great already. Would you like to open a pull request to add this? I have a couple of comments (like the name of the executable in the synopsis 😃), but I think this can be better discussed in the pull request / review. |
In the past I have used http://rtomayko.github.io/ronn/ for writing man pages. They look like this: |
@dashohoxha I think installing ruby and the dependencies are possible but I think it would be better to write it in roff or mandoc format rather than writing it in a format that requires external ruby dependency. If anything, generating man pages from rust / clap would be nice since it already depends on rust. Or otherwise, writing roff markup would not be that hard as well. |
ronn format is like markdown. From it you can also generate an HTML page, besides a man page. My reasons for using it was to avoid writting roff markup (which seems hard and unfamiliar to me), and for being able to generate other formats as well (like HTML). |
@dashohoxha But why ruby dependency? We need to have installed ruby + ruby-ronn which requires additional ~12 MB dependencies as well as reducing it's portability possibly. |
I am for the simplicity and universality of the markdown format, not for inceasing dependancies. If you can find (or build) a rust tool that does the same thing as ronn, that's fine too. By the way, I don't think it increases the dependency or reduces portability, because it is something that is done by the developers (convertion from ronn format to roff or html format). The users don't need to install ruby or ronn. |
Adding a man entry would be a nice improvement for when
fd
is packaged (And possibly some day for when installed viacargo install
?).The text was updated successfully, but these errors were encountered: