Skip to content

Commit 2fd5f45

Browse files
committed
Ignore files under common when building docs sidebar
Signed-off-by: Thomas Hallgren <thomas@tada.se>
1 parent 5c8613d commit 2fd5f45

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docusaurus.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ const config: Config = {
100100
const linksPath = path.join(contentPath, "doc-links.yml");
101101
const items = YAML.parse(readFileSync(linksPath, "utf-8")).map(linkToItem);
102102
for (const id of idSet) {
103-
logger.warn(`"${path.join(versionName, 'doc-links.yml')}" has no entry for id "${id}"`);
103+
if (!id.startsWith("common/")) {
104+
logger.warn(`"${path.join(versionName, 'doc-links.yml')}" has no entry for id "${id}"`);
105+
}
104106
}
105107
return items;
106108
},

0 commit comments

Comments
 (0)