UNPKG

virmator

Version:

Handle common package configs, commands, and dependencies.

22 lines (19 loc) 703 B
import {baseTypedocConfig} from '@virmator/docs/configs/typedoc.config.base'; import {dirname, join} from 'node:path'; import {fileURLToPath} from 'node:url'; import {type TypeDocOptions} from 'typedoc'; const indexTsFile = join(dirname(dirname(fileURLToPath(import.meta.url))), 'src', 'index.ts'); const outDirPath = join(dirname(dirname(fileURLToPath(import.meta.url))), 'dist-docs'); export const typeDocConfig: Partial<TypeDocOptions> = { ...baseTypedocConfig, out: outDirPath, entryPoints: [ indexTsFile.replaceAll('\\', '/'), ], intentionallyNotExported: [], defaultCategory: 'MISSING CATEGORY', categoryOrder: [ 'Main', 'Internal', ], };