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

man pages #275

Closed
whyrusleeping opened this issue Nov 7, 2014 · 16 comments
Closed

man pages #275

whyrusleeping opened this issue Nov 7, 2014 · 16 comments
Labels
kind/enhancement A net-new feature or improvement to an existing feature

Comments

@whyrusleeping
Copy link
Member

Any real unixy tool worth its salt has verbose man pages, Personally, I love being able to just say 'man ThisFunctionImWorkingWith' and get help in my terminal.

There exist a few different solutions for generating man pages from godoc information, this will probably be good enough for us. (as long as they can do per function breakdowns!)
https://code.google.com/p/mango-doc/

@whyrusleeping whyrusleeping added the kind/enhancement A net-new feature or improvement to an existing feature label Nov 7, 2014
@chriscool
Copy link
Contributor

It would be nice if there was a way to easily generate HTML doc too.

Git uses Asciidoc to generate HTML and XML files and then Xmlto is used to generate man pages from xml files.

By the way, git help -m <command> displays the man page and git help -w <command> opens the HTML page in a browser. git help <command> by default displays the man page on Linux and OSX and opens the HTML page in a browser on Windows which is nice for Windows users.

@whyrusleeping
Copy link
Member Author

@chriscool i always use git help -m by default, i love the attention to detail you guys have for documentation, and I want to strive for the same with ipfs.

@chriscool
Copy link
Contributor

After googling a bit (see for example: http://serverfault.com/questions/109490/how-do-i-write-man-pages), it looks like some other possible solutions could be:

  • ronn that can convert Markdown to man and HTML
  • Pandoc that can convert from and to many different formats
  • xmltoman that can convert XML to man and HTML
  • yodl a special format that can be converted to man and HTML
  • Zoem a special format that can be converted to man, HTML and other formats

@whyrusleeping
Copy link
Member Author

Ideally, I would like to be able to use godoc to generate all other documentation types. That way, all of our documentation stays consistent across mediums.

@chriscool
Copy link
Contributor

Yeah, it looks like godoc has an -html flag, so using godoc and mango together can work.

Also if we use Mango, we can still create HTML pages from the man pages as there are tools to do that like groff and man2html.

But anyway maybe we should check that the HTML output looks nice.

@whyrusleeping
Copy link
Member Author

that would be a good first step, haha. Although, I think that godocs generated html looks quite nice, no need to convert man pages to html

@whyrusleeping
Copy link
Member Author

closing old issues.

@jbenet
Copy link
Member

jbenet commented Mar 6, 2015

we may still want real man pages someday -- agreed to close until then. (if people really need this poke us here!)

@anarcat
Copy link
Contributor

anarcat commented Mar 7, 2015

poke.

@notslang
Copy link
Contributor

notslang commented Jul 6, 2015

+1 for man pages... (working on an Arch package to make installation easier, which traditionally comes with a man entry)

@jbenet
Copy link
Member

jbenet commented Jul 6, 2015

we could generate them from the cli help

@whyrusleeping
Copy link
Member Author

I'd love to have this... how does man work with subcommands?

@whyrusleeping
Copy link
Member Author

It would be really cool to have a program/library that could accept one of the command objects from our commands lib and use it to generate a manpage.

@notslang
Copy link
Contributor

notslang commented Jul 9, 2015

@whyrusleeping: take a look at man git - that's a pretty well written manpage that includes subcommands

@jbenet: probably not. the man page is supposed to explain the commands and workings of the program in depth. it would be better to generate it from the full documentation.

@unbeatable-101
Copy link

Poke

ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this issue Oct 23, 2021
@aschmahmann aschmahmann mentioned this issue Dec 1, 2021
80 tasks
@rampaq
Copy link

rampaq commented Apr 24, 2022

Are there any manpages, yet? It would be really nice to have everything in one place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A net-new feature or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests

7 participants