docs: fix loading in order reference pages (#12629)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user