import type { Config } from '../declarations' ; import type { CoreCompiler } from './load-compiler' ; import { isOutputTargetDocs } from '../compiler/output-targets/output-utils' ; import { startupCompilerLog } from './logs' ; export const taskDocs = async ( coreCompiler , config ) => { config . devServer = null ; config . outputTargets = config . outputTargets . filter ( isOutputTargetDocs ) ; config . devMode = true ; startupCompilerLog ( coreCompiler , config ) ; const compiler = await coreCompiler . createCompiler ( config ) ; await compiler . build ( ) ; await compiler . destroy ( ) ; } ;