Skip to content

Commit 571412d

Browse files
committed
fix(groups): route file-scoped namespaces to group pages
1 parent 4fe06d8 commit 571412d

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moxygen",
3-
"version": "2.1.4",
3+
"version": "2.1.5",
44
"description": "Doxygen XML to Markdown converter",
55
"type": "module",
66
"main": "dist/index.js",

‎src/index.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,12 @@ function buildGroupedNamespacePagePathMap(groups: Compound[]): PagePathMap {
654654
if (isJunkCompound(namespace)) continue;
655655
map.set(namespace.refid, groupPath);
656656
}
657+
658+
for (const refid of (group.fileScopedNamespaceRefs as string[] | undefined) ?? []) {
659+
if (!map.has(refid)) {
660+
map.set(refid, groupPath);
661+
}
662+
}
657663
}
658664

659665
return map;

0 commit comments

Comments
 (0)