Skip to content

manpage out of date #25689

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

Closed
rillian opened this issue May 21, 2015 · 9 comments · Fixed by #46514
Closed

manpage out of date #25689

rillian opened this issue May 21, 2015 · 9 comments · Fixed by #46514
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug. P-low Low priority T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue.

Comments

@rillian
Copy link
Contributor

rillian commented May 21, 2015

In the 1.0.0 release (and master) the rustc and rustdoc man pages say they document version '0.13.0 March 2014'.

Looks like some of the contents are stable as well, e.g. the rust manpage suggests '-C target-cpu=help' for which rustc --help gives 'llc -mcpu=help'.

@emberian
Copy link
Member

@rillian would you like to send a PR updating the man page (they're in https://github.com/rust-lang/rust/tree/master/man), or should someone else?

This was referenced May 26, 2015
@rillian
Copy link
Contributor Author

rillian commented May 26, 2015

I prepared pull requests. We should probably figure out a way to update or generate these as part of the build though.

@brson
Copy link
Contributor

brson commented May 27, 2015

Yeah, it least using a template to plugin the version number automatically would help.

Manishearth added a commit to Manishearth/rust that referenced this issue May 27, 2015
Quick update to fix two manpage issues I noticed in rust-lang#25689.
Manishearth added a commit to Manishearth/rust that referenced this issue May 27, 2015
Quick update to fix two manpage issues I noticed in rust-lang#25689.
Manishearth added a commit to Manishearth/rust that referenced this issue May 27, 2015
Quick update to fix two manpage issues I noticed in rust-lang#25689.
@steveklabnik
Copy link
Member

Changing to A-build as the immediate documenation situation has been addressed.

@sanmai-NL
Copy link

sanmai-NL commented Jun 12, 2016

Current master has a man page title as if it's still Rust 1.2.0.

.TH RUSTC "1" "August 2015" "rustc 1.2.0" "User Commands"

@steveklabnik, is there perhaps work underway, planned or desired to autoproduce the man pages?

@brson
Copy link
Contributor

brson commented Jun 12, 2016

@sanmai-NL, there's no such effort underway.

As a first step, I'd be interested in a patch that just fills in the version automatically.

In the long-term I'm not sure if producing the full man pages is desirable or not, but relates to the problem of man pages being useless on windows.

A reason the man pages aren't updated much may be that they are rarely seen. If this information was written as part of the published documentation, so more people could use it, then converted to man pages it may get more contributions.

@steveklabnik
Copy link
Member

IIRC, there was some work in Cargo to do generated manpages.

@sanmai-NL
Copy link

sanmai-NL commented Jun 13, 2016

@brson, see my PR #34254.

Reasons to keep the man pages:

  1. The man pages are there, removing them is a bit of lost work then. If they're not desired because of Windows, then creating them should've been given more thought at the outset.
  2. I think they are expected by users on Unix for utilities with so many command line options, such as rustc. Having them can be considered necessary for feature parity with gcc, ocamlc, basically any popular compiler.

I agree that writing man pages manually is undesirable. Have you seen Docker Engine's man page production workflow? I personally would prefer that you'd start using Asciidoctor, since that's basically the best OSS technical documentation system around, and it can render man pages as well as DocBook, responsive (X)HTML5, PDF, etc.

What about thinking differently, not along the lines of superseding the man pages with ‘the published documentation’ but rather considering them part of ‘the documentation’ and accounted for as such.

@steveklabnik
Copy link
Member

The recent man page work on cargo first used ASCIIDOC, but we rejected it in favor of keeping the consistency of Markdown everywhere.

On Jun 13, 2016, 10:28 +0200, Sander [email protected], wrote:

@brson(https://github.com/brson), see my PR#34254(#34254).

Reasons to keep the man pages:

  1. The man pages are there, removing them is a bit of lost work then. If they're not desired because of Windows, then creating them should've been given more thought at the outset.
  2. I think they are expected by users on Unix for utilities with so many command line options, such asrustc. Having them can be considered necessary for feature parity withgcc,ocamlc, basically any popular compiler.

I agree that writing man pages manually is undesirable. Have you seenDocker Engine's man page production workflow(https://github.com/docker/docker/blob/9a8affb0ffdf6010fca6a1c8fb00c9e0a38845d6/man/README.md)? I personally would prefer that you'd start usingAsciidoctor(http://asciidoctor.org/docs/user-manual/#man-pages), since that basically the best OSS technical documentation system around, and it can render man pages as well as DocBook, responsive (X)HTML5, PDF, etc.

What about thinking differently, not along the lines of superseding the man pages with ‘the published documentation’ but rather considering them part of ‘the documentation’ and accounted for as such.


You are receiving this because you were mentioned.
Reply to this email directly,view it on GitHub(#25689 (comment)), ormute the thread(https://github.com/notifications/unsubscribe/AABsis_n8P2KaCfeaJbJ_rGiy_a6v66bks5qLRSUgaJpZM4Ej8Rp).

@Mark-Simulacrum Mark-Simulacrum added C-bug Category: This is a bug. A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue. labels Jul 22, 2017
@steveklabnik steveklabnik added the P-low Low priority label Aug 30, 2017
zackmdavis added a commit to zackmdavis/rust that referenced this issue Dec 5, 2017
bors added a commit that referenced this issue Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug. P-low Low priority T-dev-tools Relevant to the dev-tools subteam, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants