Module Options

API Reference for DocLayer’s ModuleOptions

Below you can find the reference for the initial options for the DocLayer Module. These options are related to the internal setup and do not affect the application's behavior or appearance.

You can refer to the exported types, which are available for use throughout your application. All of them can be accessed from the @vuehouse/dl/types entrypoint.

/** * DocLayer initial Module options (optional). */export type ModuleOptions = Partial<{  /**   * Base timeout used across the app.   *   * @see {@link https://doclayer.dev/docs/guidelines/installation#basetimeout}   * @default 500   */  baseTimeout: number;  /**   * Whether to enable debug mode.   * This will log additional information to the console, during dev or build mode(s).   *   * Potentially to be extended in the future.   *   * @see {@link https://doclayer.dev/docs/guidelines/installation#debug}   * @default false   */  debug: boolean;  /**   * Whether to convert `.markdownlint.js` into `.markdownlint.json` during prepare.   * Enables markdownlint-cli usage (JSON + `--rules`) from the app's JS markdownlint config.   *   * @see {@link https://doclayer.dev/docs/guidelines/internals#markdownlint}   * @default true   */  mdlConvert: boolean;  /**   * DocLayer experimental features.   *   * @see {@link https://doclayer.dev/docs/guidelines/installation#experimental}   * @default undefined   */  experimental: Partial<{    /**     * Whether to enable LLM-based summary for the `llms.txt` file.     *     * @see {@link https://doclayer.dev/docs/guidelines/configuration#experimentalllmsummary}     * @default false     */    llmSummary: boolean;    /**     * Whether to enable internal DocLayer modules execution.     *     * @see {@link https://doclayer.dev/docs/guidelines/configuration#experimentalmodules}     * @default false     * @experimental     */    modules: boolean;  }>;  /**   * Internal DocLayer modules initialization.   * Available only when the `experimental.modules` flag is on.   *   * Relies on the `defineDoclayerModule` macro to initialize the module.   *   * @see {@link https://doclayer.dev/docs/advanced/modules}   * @see {@link https://doclayer.dev/docs/utilities/macros#definedoclayermodule}   * @see {@link DefineDoclayerModule}   * @internal   * @experimental   * @example   * ```ts   * modules: [   *   (defineDoclayerModule) => defineDoclayerModule({   *     meta: { name: 'my-module' },   *     setup: async (kit, context) => {   *       console.log('my-module initialized');   *     },   *   }),   * ],   */  modules?: Array<(defineDoclayerModule: DefineDoclayerModule) => ReturnType<DefineDoclayerModule>>;  /**   * Whether to sanitize HTML.   * Linked with `utilSafeHTML` to assure safe HTML rendering across the codebase.   *   * @see {@link https://doclayer.dev/docs/guidelines/installation#senatizehtml}   * @see {@link https://doclayer.dev/docs/utils/utilities#utilsafehtml}   * @default true   */  sanitizeHTML: boolean;  /**   * Whether to prepare the application root directory before module run.   * Enables initialization and cleanup routines for the root director before running module logic.   *   * If set to `true`, components and configs will be automatically added to the application on each run.   * If set to `false`, these files will not be added, allowing you to use custom entry points.   *   * Can be also set granularly per assets group.   *   * @see {@link https://doclayer.dev/docs/guidelines/installation#rootprep}   * @default true   */  rootPrep:    | {        /**         * Whether to prepare the application components (`app.vue`, `error.vue`) before module run.         * Enables initialization and cleanup routines for the components before running module logic.         *         * @default true         */        components: boolean;        /**         * Whether to prepare the application configs (`content.config.ts`) before module run.         * Enables initialization and cleanup routines for the configs before running module logic.         *         * @default true         */        configs: boolean;      }    | boolean;  /**   * Whether to strip prompts from the final rendered markup.   *   * @see {@link https://doclayer.dev/docs/guidelines/installation#stripprompts}   * @default true   */  stripPrompts: boolean;}>;