Skip to content

Commit 2fa2809

Browse files
committedOct 5, 2024
Update CI config.
1 parent b07a2ed commit 2fa2809

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed
 

‎.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200
uses: actions/checkout@v3
201201
with:
202202
repository: shader-slang/stdlib-reference
203-
path: docs/
203+
path: docs/stdlib-reference/
204204
token: ${{ secrets.UPDATE_STDLIB_REFERENCE_PAT }}
205205
- name: Update stdlib reference
206206
if: matrix.os == 'windows' && matrix.platform == 'x86_64'

‎docs/build_reference.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
if (-not (Test-Path ".\stdlib-reference")) {
33
git clone https://github.com/shader-slang/stdlib-reference/
44
}
5+
else {
6+
cd stdlib-reference
7+
git pull
8+
cd ../
9+
}
510
Remove-Item -Path ".\stdlib-reference\global-decls" -Recurse -Force
611
Remove-Item -Path ".\stdlib-reference\interfaces" -Recurse -Force
712
Remove-Item -Path ".\stdlib-reference\types" -Recurse -Force

‎source/slang/slang-doc-markdown-writer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1906,7 +1906,7 @@ String DocMarkdownWriter::translateToHTMLWithLinks(String text)
19061906
sb.append("\"");
19071907
if (isKeyword(token.Content.getUnownedSlice()))
19081908
sb.append(" class=\"code_keyword\"");
1909-
else if (as<AggTypeDeclBase>(page->getFirstEntry()->m_node))
1909+
else if (as<AggTypeDeclBase>(page->getFirstEntry()->m_node) || as<TypeDefDecl>(page->getFirstEntry()->m_node))
19101910
sb.append(" class=\"code_type\"");
19111911
sb.append(">");
19121912
escapeHTMLContent(sb, token.Content.getUnownedSlice());

0 commit comments

Comments
 (0)