Skip to content

Commit fd061a2

Browse files
author
Sidharth123-cpu
committed
Refactor: Improve site formatting, remove redundant headers/footers, and fix GBID links
1 parent d871cbc commit fd061a2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

generate-site.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ async function generateSite() {
2727
// Generate _config.yml for Jekyll
2828
const jekyllConfig = `\
2929
# Site settings
30-
title: Graph-Break Registry
31-
description: A registry of PyTorch Dynamo graph breaks.
30+
title: ""
31+
description: ""
3232
3333
# Base URL for the site
3434
# This is crucial for correct linking on GitHub Pages
@@ -87,26 +87,30 @@ Below are all known graph breaks detected by Dynamo.
8787
8888
## Graph-Break Type
8989
*Short name describing what triggered the graph break*
90+
9091
${entry.Gb_type}
9192
9293
## Context
9394
*Values or code snippet captured at the break point*
95+
9496
${entry.Context || '*No context provided.*'}
9597
9698
## Explanation
9799
*Why this specific graph break happened*
100+
98101
${entry.Explanation || '*No explanation provided.*'}
99102
100103
## Hints
101104
*Suggestions for fixing or working around the break*
105+
102106
${entry.Hints?.length ? entry.Hints.map(h => `- ${h}`).join('\n') : '*No hints provided.*'}
103107
104108
${entry.Additional_Info?.length ? `
105109
## Additional Information
106110
${entry.Additional_Info.map(info => `- ${info}`).join('\n')}
107111
` : ''}
108112
109-
[Back to Registry](../index.md)
113+
[Back to Registry](../index.html)
110114
`;
111115
fs.writeFileSync(path.join(gbDir, `${id.toLowerCase()}.md`), detailMd);
112116
});

0 commit comments

Comments
 (0)