mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 07:58:02 +00:00
Fix man inline macro
This should fix the double slash in the link.
This commit is contained in:
parent
728075a37d
commit
fd31f6cab4
@ -15,11 +15,11 @@ class ManInlineMacro < Asciidoctor::Extensions::InlineMacroProcessor
|
|||||||
if doc.basebackend? 'html'
|
if doc.basebackend? 'html'
|
||||||
case attrs['service']
|
case attrs['service']
|
||||||
when 'debian'
|
when 'debian'
|
||||||
domain = 'https://manpages.debian.org/'
|
domain = 'https://manpages.debian.org'
|
||||||
when 'arch'
|
when 'arch'
|
||||||
domain = 'https://man.archlinux.org/man'
|
domain = 'https://man.archlinux.org/man'
|
||||||
when 'opensuse'
|
when 'opensuse'
|
||||||
domain = 'https://manpages.opensuse.org/'
|
domain = 'https://manpages.opensuse.org'
|
||||||
else
|
else
|
||||||
raise "no available manpage service #{attrs['service']}"
|
raise "no available manpage service #{attrs['service']}"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user