Use local hyperlinks for :doc:

This commit is contained in:
Kovid Goyal 2022-08-20 16:32:35 +05:30
parent ad6d928c12
commit 11ffa961bc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -254,9 +254,9 @@ func prettify(text string) string {
} }
return italic_fmt(val) return italic_fmt(val)
case "env", "envvar": case "env", "envvar":
return italic_fmt(val) return ref_hyperlink(val, "envvar-")
case "doc": case "doc":
return website_url(val) return ref_hyperlink(val, "doc-")
case "ref": case "ref":
return ref_hyperlink(val, "") return ref_hyperlink(val, "")
case "ac": case "ac":