We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 910f99b commit ce7b3b4Copy full SHA for ce7b3b4
src/lib/output/themes/default/DefaultTheme.tsx
@@ -383,7 +383,17 @@ export class DefaultTheme extends Theme {
383
}
384
385
if (parent.categories && shouldShowCategories(parent, opts)) {
386
- return filterMap(parent.categories, toNavigation);
+ const noneCategory = parent.categories.find((x) => x.title === "none");
387
+ const otherCategories = parent.categories.filter((x) => x.title !== "none");
388
+
389
+ const mappedOthers = filterMap(otherCategories, toNavigation);
390
391
+ if (noneCategory) {
392
+ const noneMappedChildren = filterMap(noneCategory.children, toNavigation);
393
+ return [...noneMappedChildren, ...mappedOthers];
394
+ }
395
396
+ return mappedOthers;
397
398
399
if (parent.groups && shouldShowGroups(parent, opts)) {
0 commit comments