-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Draft] Test commit to preview the man page #21194
base: main
Are you sure you want to change the base?
Conversation
8717d18
to
3f93680
Compare
.SH "BUGS" | ||
.sp | ||
Please send bug reports to either the distribution bug tracker or the | ||
.URL "https://github.com/cockpit\-project/cockpit/issues/new" "upstream bug tracker" "." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the raw output of asciidoctor.
It renders URL correctly in the man markup using .URL
keyword.
e. | ||
the path component of Cockpit URLs. | ||
It is highly recommended to only open a particular page | ||
frame (https://cockpit-project.org/guide/latest/embedding.html), not the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the render of markdown input produced by pandoc.
Url is written as a plain text, thus line breaks can happen in the middle of it.
@@ -0,0 +1,59 @@ | |||
% cockpit-desktop(1) | Cockpit Desktop integration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required by pandoc
@@ -0,0 +1,59 @@ | |||
= cockpit-desktop(1) | |||
:doctype: manpage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the doc-type to use for man pages backend in asciidoctor
https://docs.asciidoctor.org/asciidoctor/latest/manpage-backend/
Testing GitHub presentation of Markdown and Asciidoc for man pages
To generate man page from markdown run:
To generate man page from asciidoc run
To view man page run: