Skip to content

Commit 87ccc79

Browse files
authored
Remove double header when component has Hero section (#3390)
1 parent 45aa8f2 commit 87ccc79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/docs/buildDocsCommon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ function processComponents(components) {
7070
if (isParentComponent) {
7171
content += 'sidebar_position: 1\n';
7272
}
73+
const title = component.docs?.hero ? '""' : `${isIncubatorComponent ? 'Incubator.' : ''}${component.name}`;
7374
content += `id: ${component.name}\n`;
74-
content += `title: ${isIncubatorComponent ? 'Incubator.' : ''}${component.name}\n`;
75+
content += `title: ${title}\n`;
7576
content += `sidebar_label: ${componentName}\n`;
7677
content += '---\n\n';
7778

0 commit comments

Comments
 (0)