## NUT macros: linkman, linkdoc # # Usage: linkman:command[manpage-section] # This macro allows to handle variable manpage location, depending on the # document type # # Note, {0} is the manpage section, while {target} is the command. # # Example: linkman:ups.conf[5] # # Show NUT link as: (
); if section is defined, else just show # the command. # ################################################################################ # # Usage: linkdoc:document[display title,[anchor]] # This macro allows to handle variable NUT documentation location, depending # on the document type # # Note, {1} is the display title, {2} is the optional anchor name, # {0} is the whole set of args ({1}...{n}) and {target} is the # base document name. # Example: # linkdoc:user-manual[user manual,NUT_Security] # linkdoc:developer-guide[developer guide,_status_data] [macros] (?su)[\\]?(?Plinkman):(?P\S*?)\[(?P.*?)\]= (?su)[\\]?(?Plinkdoc):(?P\S*?)\[(?P.*?)\]= ifdef::basebackend-docbook[] ifdef::xhtml11_format[] [linkman-inlinemacro] {target}{0?({0})} [linkdoc-inlinemacro] {1} endif::xhtml11_format[] # FIXME: linkdoc does not support 'anchor' ifdef::chunked_format[] [linkman-inlinemacro] {target}{0?({0})} [linkdoc-inlinemacro] {1} endif::chunked_format[] # PDF output points online versions # FIXME: linkdoc does not support 'anchor' ifdef::pdf_format[] [linkman-inlinemacro] {target}{0?({0})} [linkdoc-inlinemacro] {1} endif::pdf_format[] endif::basebackend-docbook[]