Skip to content
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

What do think of a man page? #86

Open
dotemacs opened this issue Apr 4, 2021 · 2 comments
Open

What do think of a man page? #86

dotemacs opened this issue Apr 4, 2021 · 2 comments

Comments

@dotemacs
Copy link
Contributor

dotemacs commented Apr 4, 2021

What are your thoughts on having a man page for jet(1) ?

A tool like this https://git.sr.ht/%7Esircmpwn/scdoc/ could be used to re-purpose the existing documentation and add it to the man page, so that it's (arguably) more accessible via man jet command, instead of "please go to https://github.com/borkdude/jet/ and read the documentation under doc directory".

Thanks

@dotemacs
Copy link
Contributor Author

dotemacs commented Apr 4, 2021

For example if you have the man page in scdoc's format:

jet(1)

# NAME

jet - tool to transform between JSON, EDN and Transit, powered with a
minimal query language.

# SYNTAX

Some more text

You'd run a command like this:

$ scdoc < jet.scd > jet.roff

To produce:

.\" Generated by scdoc 1.11.1
.\" Complete documentation for this program is not available as a GNU info page
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.nh
.ad l
.\" Begin generated content:
.TH "jet" "1" "2021-04-04"
.P
.SH NAME
.P
jet - tool to transform between JSON, EDN and Transit, powered with a
minimal query language.\&
.P
.SH SYNTAX
.P
Some more text

Which can be viewed via man ./jet.roff.

If placed in the correct MANPATH, it can be invoked via man jet.

See the example of how documentation looks like in a format that is required by scdoc:
https://git.sr.ht/~sircmpwn/scdoc/tree/master/item/scdoc.5.scd

@borkdude
Copy link
Owner

borkdude commented Apr 4, 2021

I think that would be awesome. Feel free to work on this and let me know if I need to do anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants