AI Knowledge
KnowledgeConfig
Knowledge generation configuration for LLM integrations.
Presence of this config enables knowledge generation.
Type
stringDescription
Base URL for documentation links in the generated output.
Type
string[]
Description
Glob patterns to exclude, relative to the resolved page directory. Supports
full glob syntax via minimatch.
exclude: ['**/internal/**', 'guide/drafts/*', '*.draft.mdx']
Type
KnowledgeExtraFile[]
Description
Extra files to include in knowledge output beyond the generated page content.
Description
Configuration for which frontmatter fields to include in the generated
Markdown output. Uses glob patterns for flexible field selection.
Type
{
openWebUi?: Array<{
envFile?: string
id: string
}>
}
Description
Platform-specific integration configurations for uploading generated
knowledge to external services.
Type
stringDescription
Output directory for generated knowledge files, relative to the public dir.
Type
stringDescription
Prefix to use for page IDs. Used to generate unique page IDs for knowledgebases
that span multiple QUI Docs sites with potentially overlapping routes.
`table-`Description
Configuration for whole-page JSON exports.
Description
Configuration for header-scoped section exports.
KnowledgeExtraFile
Extra content to include in knowledge output. Assumed to be Markdown.
Type
stringDescription
The Markdown content for this file.
Type
stringDescription
Unique identifier for this file, used for the output filename.
Type
booleanDescription
Whether to process this file as MDX content, replacing relative URLs, and
applying other transformations as if the file were authored as mdx
documentation.
Type
stringDescription
Display title for this content.
KnowledgeFrontmatterConfig
SectionExportConfig
Configuration for header-scoped section exports.
Type
number[]
Description
Header depths that define section boundaries.
Type
numberDescription
Minimum content length to create a section entry.
Type
stringDescription
Output path for sections.json, relative to the public directory.
PagesExportConfig
Configuration for whole-page exports.
Type
stringDescription
Output path for pages.json, relative to the public directory.
KnowledgeSections
Output structure for the sections.json export.
Type
stringType
stringType
SectionEntry[]
Description
Type
numberType
1SectionEntry
A single section entry extracted from documentation.
Type
Array<{
code: string
language: string
}>
Description
Code examples extracted from this section.
Type
stringDescription
Prose content with code blocks removed. Used for formatted output.
Type
stringDescription
Hash of this section's contents. Includes codeExamples, metadata, headerPath, and rawContent.
Type
string[]
Description
Breadcrumb path of headers leading to this section.
["Button", "Examples", "Variants"]
Type
numberDescription
Depth of this section's heading (1-6). Matches the heading that starts
this section (e.g. an h2 section has headingLevel 2).
Type
Record<
string,
unknown
>
Description
Frontmatter from the source page.
Type
stringDescription
Source page identifier.
Type
stringDescription
Raw markdown content from the AST, including code blocks.
Type
stringDescription
Generated section ID for anchor links.
"button-examples-variants"Type
string[]
Description
Search terms extracted from ::: terms ::: blocks within this section.
Type
Array<{
props: Array<{
defaultValue?: string
description: string
name: string
propType?:
| 'input'
| 'output'
required: boolean
since?: string
type: string
}>
since?: string
type: string
}>
Description
Name of the types or interfaces described by typeDocProps in this section.
Type
stringDescription
URL with anchor to this specific section.
KnowledgePages
Output structure for the pages.json export.
PageEntry
A single page entry containing the full raw markdown content.
Last updated on by Ryan Bower