docs: fix loading in order reference pages (#12629)

This commit is contained in:
Shahed Nasser
2025-05-28 10:42:13 +03:00
committed by GitHub
parent 341a8bb7ee
commit fb6167eed2
95 changed files with 247 additions and 236 deletions

View File

@@ -8,7 +8,7 @@ import {
customModuleTitles,
dmlModules,
} from "./references-details.js"
import { AllowedProjectDocumentsOption, FormattingOptionType } from "types"
import { AllowedProjectDocumentsOption, FormattingOptionsType } from "types"
import { kebabToCamel, kebabToPascal, kebabToSnake, kebabToTitle } from "utils"
import baseSectionsOptions from "./base-section-options.js"
import mergerCustomOptions from "./merger-custom-options/index.js"
@@ -106,7 +106,18 @@ const mergerOptions: Partial<TypeDocOptions> = {
: `I${kebabToPascal(moduleName)}ModuleService`
const isDmlModule = dmlModules.includes(moduleName)
const customModuleConfig: FormattingOptionsType = {}
switch (moduleName) {
case "order":
customModuleConfig[`^${snakeCaseModuleName}/.*/methods`] = {
maxLevel: 2,
}
break
}
return Object.assign(obj, {
...customModuleConfig,
// module config
[`^${snakeCaseModuleName}`]: {
sections: {
@@ -197,8 +208,8 @@ You should only use the methods in this reference when implementing complex cust
}
: {},
},
} as FormattingOptionType)
}, {} as FormattingOptionType),
} as FormattingOptionsType)
}, {} as FormattingOptionsType),
...mergerCustomOptions,
},