blob: 46ce163ba801afa862e623b62bef733adad65abe [file] [log] [blame]
Adam Snaider1c095c92023-07-08 02:09:58 -04001commit 677356a2a00a2cb3b10e458c8586a2ea8bd562a4
2Author: Daniel Wagner-Hall <dwagnerhall@apple.com>
3Date: Wed Nov 30 13:00:47 2022 +0000
4
5 Use backtick not `<code>` for attr default values
6
7 GitHub Pages doesn't recognise <code> blocks, so renders these
8 attributes with smart-quotes, which means you can't copy-paste them into
9 a starlark file.
10
11diff --git stardoc/templates/markdown_tables/func.vm stardoc/templates/markdown_tables/func.vm
12index 5275d08..e0d2496 100644
13--- stardoc/templates/markdown_tables/func.vm
14+++ stardoc/templates/markdown_tables/func.vm
15@@ -15,7 +15,7 @@ ${util.htmlEscape($funcInfo.docString)}
16 | Name | Description | Default Value |
17 | :------------- | :------------- | :------------- |
18 #foreach ($param in $funcInfo.getParameterList())
19-| <a id="${funcInfo.functionName}-${param.name}"></a>$param.name | #if(!$param.docString.isEmpty()) ${util.markdownCellFormat($param.docString)} #else <p align="center"> - </p> #end | #if(!$param.getDefaultValue().isEmpty()) <code>${util.htmlEscape($param.getDefaultValue())}</code> #else none #end|
20+| <a id="${funcInfo.functionName}-${param.name}"></a>$param.name | #if(!$param.docString.isEmpty()) ${util.markdownCellFormat($param.docString)} #else <p align="center"> - </p> #end | #if(!$param.getDefaultValue().isEmpty()) `${util.htmlEscape($param.getDefaultValue())}` #else none #end|
21 #end
22 #end
23 #if (!$funcInfo.getReturn().docString.isEmpty())