diff --git a/Meta/build-manpages-website.sh b/Meta/build-manpages-website.sh index 83683671a6..f58df70892 100755 --- a/Meta/build-manpages-website.sh +++ b/Meta/build-manpages-website.sh @@ -105,6 +105,7 @@ pandoc -f gfm -t html5 -s \ # Copy pre-made files cp Meta/Websites/man.serenityos.org/banner.png output/ +cp Base/usr/share/man/man7/LibDSP_classes.svg output/ # Copy icons mkdir output/icons diff --git a/Meta/convert-markdown-links.lua b/Meta/convert-markdown-links.lua index b94cfbb7ab..166a996776 100644 --- a/Meta/convert-markdown-links.lua +++ b/Meta/convert-markdown-links.lua @@ -5,6 +5,14 @@ function Link(el) end function Image(el) + -- HACK: Handle images that are not icons separately; they're copied manually in the + -- Meta/build-manpages-website.sh script. + -- Ideally this would be generalized so the paths export below could handle both. + if el.src:find("^/res/icons/") == nil then + el.src = "../" .. el.src + return el + end + local pattern = "/res/icons/(.*)" local image = string.gsub(el.src, pattern, "%1")