Skip to content

Commit 50a9fed

Browse files
authored
feat: ignore modules with "(Draft)" in title (#5)
1 parent 0c29cfc commit 50a9fed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DocsParser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ export class DocsParser {
7070
const isSecondLevelClassHeading =
7171
heading.level === 2 && heading.heading.startsWith('Class: ');
7272
const isClass = isSecondLevelClassHeading && !isTopLevelModuleHeading;
73+
if (isTopLevelModuleHeading && heading.heading.endsWith('(Draft)')) {
74+
continue;
75+
}
7376
if (isTopLevelModuleHeading || isSecondLevelClassHeading) {
7477
let name = heading.heading;
7578
if (isStructure) {

0 commit comments

Comments
 (0)