Message ID | 20210521224452.530852-6-felipe.contreras@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | doc: asciidoctor: direct man page creation and fixes | expand |
diff --git a/Documentation/asciidoctor-extensions.rb b/Documentation/asciidoctor-extensions.rb index b36317e4d2..6c4153f628 100644 --- a/Documentation/asciidoctor-extensions.rb +++ b/Documentation/asciidoctor-extensions.rb @@ -10,6 +10,8 @@ Asciidoctor::Extensions.register :git do elsif doc.basebackend? 'html' prefix = doc.attr('git-relative-html-prefix') format = %(<a href="#{prefix}%1$s.html">%1$s(%2$s)</a>) + elsif doc.basebackend? 'manpage' + format = "\e\\fB%s\e\\fP(%s)" elsif doc.basebackend? 'docbook' format = <<~EOF.chomp <citerefentry>
Fixes the doc-diff: - Please see git-commit(1) for alternative ways to add content to a - commit. + Please see for alternative ways to add content to a commit. Comments-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- Documentation/asciidoctor-extensions.rb | 2 ++ 1 file changed, 2 insertions(+)