-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve manpage infrastucture #8545
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
Comments
That's a great question. Everything should be in the repo somewhere. /cc @livarcocc Do you know? |
@blackdwarf handled this in the past. It looks like this was generated from that but the generation logic doesn't seem to have been checked in and I can't find any docs on it. Also, the the markdown has since been deleted, and the man pages left behind look out of date too. :( I think we need to clean this up and have only markdown checked in and run the generation during the build. I'll change this bug's title to reflect that. |
Thanks for digging into it!
Are we okay with a build-time dependency on pandoc? |
I don't see a problem with that, but maybe I'm missing something. We could use different tooling and format too. Do you have a suggestion? I see now that the man pages are badly out of date. They all refer to the project.json era. :( |
Pandoc actually sounds really good to me. Let me take a look at this and see what I can come up with. |
Hm. It looks like tools like Taking a step back:
|
There is no hard requirement on Markdown. We can certainly look at alternatives.
I can live with checking in the generated content if we at least have a 1-step script to run to regenerate and that script is checked in to the repo. I am generally averse to checking in things that are generated from source, but I'm open to discussing tradeoffs in this specific case. |
It looks like asciidoc-based tools (
Would you be okay if I converted the current docs to asciidoc and then modified the build to generate the man pages at build time? |
And here is what a non-complete port of |
Also, it looks like what we want man pages to look like is already maintained here: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish. Sources are https://github.com/dotnet/docs/tree/master/docs/core/tools These documents are almost already in the format of man pages. Even the section names pretty much match up. Maybe it would be better to use those (somehow) rather than duplicating them. As we can already see, those docs are pretty well maintained while these man pages are completely out of date. |
Thanks for the follow up on this. I think the ascii-doc format would work fine. I also agree it would be even better to automate building the manpages directly from the docs.microsoft.com content. |
Looks like the docs folks closed the other issue :( I am not really sure what to do now. |
@nguerrera, @richlander, @Petermarcu, if hooking up pandoc script in CI is not possible for 2.1 (dotnet/docs#2791 (comment)), could we run pandoc script locally and send PR somewhere with all converted manpages for review? Maybe the auto-converted md files will require some manual changes. |
Sure, we can accept a PR to dotnet/cli with the updated man pages. I am still wary of manual process, but at this point it seems we're not getting anywhere on automation. :( |
Moving this to 2.1.4xx for the automation part. |
This is just a quick comment to say that I appreciate the effort to include updated Linux man pages in the distribution, and I hope full automation is possible (if it's not already in place). While building dotnet packages for an obscure Linux distribution, I found that while the Fedora .rpm packages could be repackaged easily, they appeared to be lacking the man1 manual pages found in the Debian dotnet-sdk .deb packages. So I ended up pulling the man1 pages out of the .deb package and into my custom package. After a small amount of research, I wondered if this was due to the RHEL not having |
Due to lack of recent activity, this issue has been labeled as 'stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label. |
The last piece to solving this issue is being implemented here: #48784 |
The man pages for various commands (such as
dotnet-build
) indicate they are generated from some other document using a tool:What is the process to update these docs? Where can I find that original source?
The text was updated successfully, but these errors were encountered: