1 # SPDX-License-Identifier: MIT
3 def create_doc_links(parent, target, text)
4 if (parent.document.basebackend? 'docbook') || (parent.document.basebackend? 'html')
5 parent.document.register :links, target
6 create_anchor(parent, text, type: :link, target: target).render.to_s
7 elsif parent.document.backend == 'manpage'