-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
doc: manual pages for Go tools #101
Comments
It's true that there are no man pages, but there is documentation. See http://golang.org/cmd/ or run "godoc 6g" and "godoc gc" (for example) after installing Go. We certainly need proper man pages eventually, but since this is still quite experimental, the godoc output should suffice. Status changed to LongTerm. |
Owner changed to builder@golang.org. |
Is anyone working on this? I have a little patch to automatically generate man pages with the documentation from the commands, but is not yet finished. Would this be likely to be part of godoc or execute a program during all.bash installation so as man pages get installed on the right place? |
Auto-generating man pages from the existing documentation seems like the right direction and a nice patch would almost certainly be welcome. That said, this is ultimately a distro packaging problem (e.g. Debian/Ubuntu requiring man pages), moreso than a Go problem (we have documentation already, but not in the desired format(s)). So this won't hold up the Go 1 release, but if you have something working, by all means send it in. Follow the process at http://golang.org/doc/contribute.html |
Almost done, though still to debug some little things that seem not to be writing correctly in the man file, but looks like the man pages autogenerated should be good enough and will be able to rebuild every time a doc.go file is changed. I have a question while I patch it and before submitting. Would it be likely to have this as a package if anyone would want to generate a manpage? The design I've come into would let that having a lot of flexibility if the guides on how to comment go commands. I've also run into a couple of typos in the docs, should I report them or do I fix them and submit a CL too? |
Done. The CL for this issue is at http://golang.org/cl/5700081/ It may not be optimized but seems to work well. I generated a "goman" command to generate and install the man pages, but don't now what to modify in order to install them during ./all.bash execution. By default it installs on /usr/local/share/man/man1, though can be changed with -path parameter. |
I made this program for generating man pages from go a long time ago. https://code.google.com/p/mango-doc/ I haven't updated it in a bit but recently enough that it should work with the latest weekly. Hope it's useful. |
Comment 18 by baryluk@google.com: mango-doc is awesome. It would be cool to integrate it into standard distribution, and generate manpages for all packages and tools. |
CL https://golang.org/cl/15254 mentions this issue. |
The mentioned CL was abandoned and discussed further on the mailing list. To update the status of this issue:
|
Is anyone working on this? |
Nope. |
Debian includes https://anonscm.debian.org/cgit/pkg-golang/golang-defaults.git/tree/man?id=f7372ceb7313dce943617cb53bdef425dd955b58 (moved there from https://anonscm.debian.org/cgit/pkg-golang/golang.git/tree/debian/man?h=debian/2%251.6.1-2, to include a little bit more historical context for those files) -- might be a decent starting point or source of inspiration (even if only to create the templates the scraped doc data is placed into). 👍 (cc @stapelberg) |
Clearly the man format has slowed the process to a crawl. How about a proper format like a GNU Texinfo manual? |
It seems odd that even though multiple people appear to have implemented workable solutions (to the degree you can get converting the go docs to man format), none of them have been actually been integrated. Am I missing something? |
Is anyone working on it ? |
Any progress on this? Or workarounds? |
I think it's safe to say the maintainers don't care about this one. |
Change https://golang.org/cl/278574 mentions this issue: |
It's 2021 and there are many other valid forms of documentation. |
An eleven year saga has come to a close :) I believe this was the oldest open issue on this repository. |
by hugo.vincent:
The text was updated successfully, but these errors were encountered: