Type object
File match docfx.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/docfx-config-docfx-json/latest.json
Source https://www.schemastore.org/docfx.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

Metadata section defines an array of source projects and their output folder.

build object

Build section defines configuration values for the build command.

34 nested properties
content string | string[] | fileMappingItem[]

Contains all the files to generate documentation, including metadata yml files and conceptual md files.

resource string | string[] | fileMappingItem[]

Contains all the resource files that conceptual and metadata files dependent on, e.g. image files.

overwrite string | string[] | fileMappingItem[]

Contains all the conceptual files which contains yaml header with uid and is intended to override the existing metadata yml files.

externalReference string | string[] | fileMappingItem[]

[Obsoleted] Contains rpk files that define the external references.

xref string | string[]

Specifies the urls of xrefmap used by content files. Currently, it supports following scheme: http, https, ftp, file, embedded.

dest string
globalMetadata object

Contains metadata that will be applied to every file, in key-value pair format.

globalMetadataFiles string | string[]

Specify a list of JSON file path containing globalMetadata settings, as similar to {"key":"value"}.

fileMetadata object

Contains metadata that will be applied to specific files.

fileMetadataFiles string | string[]

Specify a list of JSON file path containing fileMetadata settings, as similar to {"key":"value"}.

template string | string[]

The latter ones will override the former ones if the name of the file inside the template collides. If omitted, embedded default template will be used.

theme string | string[]

The themes applied to the documentation. Theme is used to customize the styles generated by template. It can be a string or an array. The latter ones will override the former ones if the name of the file inside the template collides. If omitted, no theme will be applied, the default theme inside the template will be used.

postProcessors string | string[]
serve boolean
force boolean
forcePostProcess boolean

Force to re-process the documentation in post processors. It will be cascaded from force option.

debug boolean

Run in debug mode. With debug mode, raw model and view model will be exported automatically when it encounters error when applying templates. If not specified, it is false.

debugOutput string

The output folder for files generated for debugging purpose when in debug mode. If not specified, it is ${TempPath}/docfx.

port string

Specify the port of the hosted website.

exportRawModel boolean

If set to true, data model to run template script will be extracted in .raw.json extension.

rawModelOutputFolder string

Specify the output folder for the raw model. If not set, the raw model will be generated to the same folder as the output documentation.

exportViewModel boolean

If set to true, data model to apply template will be extracted in .view.json extension.

viewModelOutputFolder string

Specify the output folder for the view model. If not set, the view model will be generated to the same folder as the output documentation.

dryRun boolean

If set to true, template will not be actually applied to the documents. This option is always used with --exportRawModel or --exportViewModel, so that only raw model files or view model files are generated.

maxParallelism integer

Set the max parallelism, 0 (default) is same as the count of CPU cores.

min=0
lruSize integer

Set the LRU cached model count (approximately the same as the count of input files). By default, it is 8192 for 64bit and 3072 for 32bit process. With LRU cache enabled, memory usage decreases and time consumed increases. If set to 0, Lru cache is disabled.

min=0
markdownEngineName string

Set the name of markdown engine, default is dfm, and another built-in engine is gfm.

markdownEngineProperties object

Set the parameters for markdown engine.

noLangKeyword boolean

Disable default lang keyword, e.g. null.

intermediateFolder string
changesFile string
disableGitFeatures boolean

If set to true, DocFX would not fetch Git related information for articles.

keepFileLink boolean

If set to true, DocFX does not copy file to the output folder. Instead, it saves a link_to_path property inside manifest.json.

cleanupCacheHistory boolean

If set to true, cleans up historical cache data when building.

Definitions

buildConfig object

Build section defines configuration values for the build command.

content string | string[] | fileMappingItem[]

Contains all the files to generate documentation, including metadata yml files and conceptual md files.

resource string | string[] | fileMappingItem[]

Contains all the resource files that conceptual and metadata files dependent on, e.g. image files.

overwrite string | string[] | fileMappingItem[]

Contains all the conceptual files which contains yaml header with uid and is intended to override the existing metadata yml files.

externalReference string | string[] | fileMappingItem[]

[Obsoleted] Contains rpk files that define the external references.

xref string | string[]

Specifies the urls of xrefmap used by content files. Currently, it supports following scheme: http, https, ftp, file, embedded.

dest string
globalMetadata object

Contains metadata that will be applied to every file, in key-value pair format.

globalMetadataFiles string | string[]

Specify a list of JSON file path containing globalMetadata settings, as similar to {"key":"value"}.

fileMetadata object

Contains metadata that will be applied to specific files.

fileMetadataFiles string | string[]

Specify a list of JSON file path containing fileMetadata settings, as similar to {"key":"value"}.

template string | string[]

The latter ones will override the former ones if the name of the file inside the template collides. If omitted, embedded default template will be used.

theme string | string[]

The themes applied to the documentation. Theme is used to customize the styles generated by template. It can be a string or an array. The latter ones will override the former ones if the name of the file inside the template collides. If omitted, no theme will be applied, the default theme inside the template will be used.

postProcessors string | string[]
serve boolean
force boolean
forcePostProcess boolean

Force to re-process the documentation in post processors. It will be cascaded from force option.

debug boolean

Run in debug mode. With debug mode, raw model and view model will be exported automatically when it encounters error when applying templates. If not specified, it is false.

debugOutput string

The output folder for files generated for debugging purpose when in debug mode. If not specified, it is ${TempPath}/docfx.

port string

Specify the port of the hosted website.

exportRawModel boolean

If set to true, data model to run template script will be extracted in .raw.json extension.

rawModelOutputFolder string

Specify the output folder for the raw model. If not set, the raw model will be generated to the same folder as the output documentation.

exportViewModel boolean

If set to true, data model to apply template will be extracted in .view.json extension.

viewModelOutputFolder string

Specify the output folder for the view model. If not set, the view model will be generated to the same folder as the output documentation.

dryRun boolean

If set to true, template will not be actually applied to the documents. This option is always used with --exportRawModel or --exportViewModel, so that only raw model files or view model files are generated.

maxParallelism integer

Set the max parallelism, 0 (default) is same as the count of CPU cores.

min=0
lruSize integer

Set the LRU cached model count (approximately the same as the count of input files). By default, it is 8192 for 64bit and 3072 for 32bit process. With LRU cache enabled, memory usage decreases and time consumed increases. If set to 0, Lru cache is disabled.

min=0
markdownEngineName string

Set the name of markdown engine, default is dfm, and another built-in engine is gfm.

markdownEngineProperties object

Set the parameters for markdown engine.

noLangKeyword boolean

Disable default lang keyword, e.g. null.

intermediateFolder string
changesFile string
disableGitFeatures boolean

If set to true, DocFX would not fetch Git related information for articles.

keepFileLink boolean

If set to true, DocFX does not copy file to the output folder. Instead, it saves a link_to_path property inside manifest.json.

cleanupCacheHistory boolean

If set to true, cleans up historical cache data when building.

metadataConfig metadataConfigItem[]

Metadata section defines an array of source projects and their output folder.

metadataConfigItem object
src string | string[] | fileMappingItem[] required

Defines the source projects to have metadata generated.

dest string required

Defines the output folder of the generated metadata files.

disableGitFeatures boolean

If set to true, DocFX would not fetch Git related information for articles.

disableDefaultFilter boolean

If set to true, disables default API visibility filter rule.

force boolean

If set to true, it would disable incremental build.

shouldSkipMarkup boolean

If set to true, DocFX would not render triple-slash-comments in source code as markdown.

raw boolean
filter string

Defines the filter configuration file.

useCompatibilityFileName boolean

If set to true, DocFX would keep ` in comment id instead of replacing it with -.

fileMappingContent string | string[] | fileMappingItem[]

Contains all the files to generate documentation, including metadata yml files and conceptual md files.

fileMappingResource string | string[] | fileMappingItem[]

Contains all the resource files that conceptual and metadata files dependent on, e.g. image files.

fileMappingOverwrite string | string[] | fileMappingItem[]

Contains all the conceptual files which contains yaml header with uid and is intended to override the existing metadata yml files.

fileMappingExternalReferences string | string[] | fileMappingItem[]

[Obsoleted] Contains rpk files that define the external references.

fileMappingSrc string | string[] | fileMappingItem[]

Defines the source projects to have metadata generated.

fileMappingItem object
files string | string[] required

The file glob pattern collection, with path relative to property src/cwd if value is set.

name string

The name of current item, the value is not used for now.

exclude string | string[]

The file glob pattern collection for files that should be excluded, with path relative to property src/cwd if value is set.

src string

Defines the root folder for the source files, it has the same meaning as cwd

cwd string

[Obsoleted] Defines the root folder for the source files, it has the same meaning as src

dest string

The destination folder for the files if copy/transform is used.

version string

Version name for the current file-mapping item. If not set, treat the current file-mapping item as in default version. Mappings with the same version name will be built together. Cross reference doesn't support cross different versions.

rootTocPath string

The Root TOC Path used for navbar in current version, relative to output root. If not set, will use the toc in output root in current version if exists.

case boolean

Pattern match will be case sensitive. By default the pattern is case insensitive.

noNegate boolean

Disable pattern begin with ! to mean negate. By default the usage is enabled.

noExpand boolean

Disable {a,b}c => ["ac", "bc"]. By default the usage is enabled.

noEscape boolean

Disable the usage of \ to escape values. By default the usage is enabled.

noGlobStar boolean

Disable the usage of ** to match everything including / when it is the beginning of the pattern or is after /. By default the usage is enable.

dot boolean

Allow files start with . to be matched even if . is not explicitly specified in the pattern. By default files start with . will not be matched by * unless the pattern starts with ..

xref string | string[]

Specifies the urls of xrefmap used by content files. Currently, it supports following scheme: http, https, ftp, file, embedded.

globalMetadataFiles string | string[]

Specify a list of JSON file path containing globalMetadata settings, as similar to {"key":"value"}.

fileMetadataFiles string | string[]

Specify a list of JSON file path containing fileMetadata settings, as similar to {"key":"value"}.

template string | string[]

The latter ones will override the former ones if the name of the file inside the template collides. If omitted, embedded default template will be used.

theme string | string[]

The themes applied to the documentation. Theme is used to customize the styles generated by template. It can be a string or an array. The latter ones will override the former ones if the name of the file inside the template collides. If omitted, no theme will be applied, the default theme inside the template will be used.

files string | string[]

The file glob pattern collection, with path relative to property src/cwd if value is set.

exclude string | string[]

The file glob pattern collection for files that should be excluded, with path relative to property src/cwd if value is set.

disableGitFeatures boolean

If set to true, DocFX would not fetch Git related information for articles.