Minor doc cleanups.

Here's a grab bag of trivial cleanup to the documentation.  This change:

- Cleans up some comments in the asciidoctor macros which are no longer
  accurate (and do not appear in the build products anyway).

- Fixes a missing space in the text "Wireshark Q&A" in the release notes.

- Allows the "docbook" backend to produce hyperlinks too... That seems to be
  necessary if we want to start using our custom link macros in WSDG, which
  seems like a reasonable thing to do.  And fixes up a wrong variable name in
  the handling of the case where we are not able to produce a hyperlink.


(cherry picked from commit 4c513fb4ab)
This commit is contained in:
Darius Davis 2021-03-19 23:37:53 +00:00 committed by Gerald Combs
parent f63d93957d
commit b2d8858b9a
5 changed files with 7 additions and 6 deletions

View File

@ -3,7 +3,8 @@ require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
include ::Asciidoctor
# An inline macro that generates links to related man pages.
# An inline macro that generates a link to a CVE Record identified by its CVE
# Number.
#
# Usage
#

View File

@ -1,13 +1,13 @@
# SPDX-License-Identifier: MIT
module WsUtils
def create_doc_links(parent, target, text)
if parent.document.basebackend? 'html'
if (parent.document.basebackend? 'docbook') || (parent.document.basebackend? 'html')
parent.document.register :links, target
create_anchor(parent, text, type: :link, target: target).render.to_s
elsif parent.document.backend == 'manpage'
"\\fB#{text}"
else
bugtext
text
end
end
end

View File

@ -3,7 +3,7 @@ require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
include ::Asciidoctor
# An inline macro that generates links to related man pages.
# An inline macro that generates a link to a Wireshark bug report.
#
# Usage
#

View File

@ -3,7 +3,7 @@ require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
include ::Asciidoctor
# An inline macro that generates links to related man pages.
# An inline macro that generates a link to a Wireshark Security Advisory.
#
# Usage
#

View File

@ -105,7 +105,7 @@ The Users Guide, manual pages and various other documentation can be found at
https://www.wireshark.org/docs/
Community support is available on
https://ask.wireshark.org/[WiresharksQ&A site]
https://ask.wireshark.org/[Wiresharks Q&A site]
and on the wireshark-users mailing list.
Subscription information and archives for all of Wiresharks mailing lists can be found on
https://www.wireshark.org/lists/[the web site].