Adam Snaider | 1c095c9 | 2023-07-08 02:09:58 -0400 | [diff] [blame^] | 1 | commit 677356a2a00a2cb3b10e458c8586a2ea8bd562a4 |
| 2 | Author: Daniel Wagner-Hall <dwagnerhall@apple.com> |
| 3 | Date: 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 | |
| 11 | diff --git stardoc/templates/markdown_tables/func.vm stardoc/templates/markdown_tables/func.vm |
| 12 | index 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()) |