1 parent 711a9f1 commit 0a445f2Copy full SHA for 0a445f2
1 file changed
packages/docs/src/plugins/typedoc-frontmatter.mjs
@@ -33,7 +33,7 @@ export function load(application) {
33
tag: "style",
34
},
35
];
36
- frontmatter.tableOfContents = false;
+ frontmatter.tableOfContents = shouldHaveTableOfContents(event.url);
37
38
const extraFeatureTitle = getExtraFeatureTitle(event.url);
39
if (extraFeatureTitle !== undefined) {
@@ -71,6 +71,10 @@ function getExtraFeatureTitle(url) {
71
);
72
}
73
74
+function shouldHaveTableOfContents(url) {
75
+ return url === "classes/features/other/extraConsoleCommands/commands.md";
76
+}
77
+
78
function pascalCaseToTitleCase(value) {
79
return value
80
.replaceAll(/(?<=[A-Z])(?=[A-Z][a-z])/gv, " ")
0 commit comments