Class Generator
The class responsible for creating the documentation. Takes in a documentation structure and settings.
Constructor
constructor(
settings: TsDocsOptionsinterface TsDocsOptionsts-docs/TsDocsOptions,
fileHost = FileHostinterface FileHostts-docs/fileHost/FileHost,
activeBranch = "main"
)fileHost = FileHostinterface FileHostts-docs/fileHost/FileHost,
activeBranch = "main"
Properties
structure: DocumentStructuretype DocumentStructurets-docs/documentStructure/DocumentStructure[src]
settings: TsDocsOptionsinterface TsDocsOptionsts-docs/TsDocsOptions[src]
currentGlobalModuleName?: string[src]
The name of the current global Moduleinterface Moduleextractor/extractor/Module being rendered. It's going to be undefined if there is only one entry point.
landingPage: LandingPageinterface LandingPagets-docs/LandingPage[src]
extractor: TypescriptExtractorclass TypescriptExtractorextractor/extractor/TypescriptExtractor[src]
currentModule: Moduleinterface Moduleextractor/extractor/Module[src]
currentProject: Projectclass Projectextractor/extractor/Project[src]
currentItem: Declarationtype Declarationextractor/extractor/Declaration[src]
tests?: TestCollectorclass TestCollectorts-docs/tests/TestCollector[src]
categories: Recordexternal Record<string, Arrayexternal Array<Referenceinterface Referenceextractor/extractor/Reference>>[src]
Methods
generateLanding(project: Projectclass Projectextractor/extractor/Project): void[src]
Generates a landing page with data taken from a project.
This method changes the depthproperty Generator.depthts-docs/generator/Generator to 0
!
generateThingsInsideModule(path: string, module: Moduleinterface Moduleextractor/extractor/Module): void[src]
generateClass(path: string, classObj: ClassDeclinterface ClassDeclextractor/extractor/ClassDecl): void[src]
generateEnum(path: string, enumObj: EnumDeclinterface EnumDeclextractor/extractor/EnumDecl): void[src]
generateTypeDecl(path: string, typeObj: TypeDeclinterface TypeDeclextractor/extractor/TypeDecl): void[src]
generateFunction(path: string, func: FunctionDeclinterface FunctionDeclextractor/extractor/FunctionDecl): void[src]
generateConstant(path: string, constant: ConstantDeclinterface ConstantDeclextractor/extractor/ConstantDecl): void[src]
generateConstructType(
ref: FunctionSignatureinterface FunctionSignatureextractor/extractor/FunctionSignature | ConstructorTypetype ConstructorTypeextractor/extractor/ConstructorType,
includeNew?: boolean
): string[src]includeNew?: boolean
generateRef(
ref: Referenceinterface Referenceextractor/extractor/Reference,
other: OtherRefDatainterface OtherRefDatats-docs/generator/OtherRefData = {},
raw?: boolean
): string[src]other: OtherRefDatainterface OtherRefDatats-docs/generator/OtherRefData = {},
raw?: boolean
generateArrowFunction(ref: ArrowFunctioninterface ArrowFunctionextractor/extractor/ArrowFunction): string[src]
generateTypeParameter(type: TypeParameterinterface TypeParameterextractor/extractor/TypeParameter): string[src]
generateParameter(type: FunctionParameterinterface FunctionParameterextractor/extractor/FunctionParameter): string[src]
generateExports(module: Moduleinterface Moduleextractor/extractor/Module): ModuleExportstype ModuleExportsts-docs/generator/ModuleExports[src]
generatePage(
p: string,
directory: string,
file: string,
content: string,
other: Partialexternal Partial<IndexDatainterface IndexDatats-docs/generator/IndexData & OtherPropsinterface OtherPropsts-docs/generator/OtherProps> = {}
): string[src]directory: string,
file: string,
content: string,
other: Partialexternal Partial<IndexDatainterface IndexDatats-docs/generator/IndexData & OtherPropsinterface OtherPropsts-docs/generator/OtherProps> = {}