Skip to content

Commit da595a9

Browse files
committed
fix site
1 parent 095ed43 commit da595a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/build-site.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ function buildStats(markdown, sectionList) {
433433
function enhanceArticleHtml(html) {
434434
let result = decorateEmotionTable(html);
435435
result = highlightTpsCodeBlocks(result);
436+
// Rewrite examples/*.tps links to examples/*.html for the website
437+
result = result.replace(/href="examples\/([^"]+)\.tps"/g, 'href="examples/$1.html"');
436438
return result;
437439
}
438440

0 commit comments

Comments
 (0)