mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 00:57:04 +00:00
autodoc: Add hidden
class to [src] link when starting renderApi to only show it for functions (#17322)
This commit is contained in:
parent
9c3165b81b
commit
4d1e8ef1eb
@ -750,6 +750,7 @@ Happy writing!
|
||||
domSectFnErrors.classList.add("hidden");
|
||||
domFnExamples.classList.add("hidden");
|
||||
domFnNoExamples.classList.add("hidden");
|
||||
domFnSourceLink.classList.add("hidden");
|
||||
domDeclNoRef.classList.add("hidden");
|
||||
domFnErrorsAnyError.classList.add("hidden");
|
||||
domTableFnErrors.classList.add("hidden");
|
||||
@ -904,7 +905,7 @@ Happy writing!
|
||||
let typeObj = getType(value.expr.type);
|
||||
|
||||
domFnProtoCode.innerHTML = renderTokens(ex(value.expr, { fnDecl: fnDecl }));
|
||||
|
||||
domFnSourceLink.classList.remove("hidden");
|
||||
domFnSourceLink.innerHTML = "[<a target=\"_blank\" href=\"" + sourceFileLink(fnDecl) + "\">src</a>]";
|
||||
|
||||
let docsSource = null;
|
||||
|
Loading…
Reference in New Issue
Block a user