Documentation build parameters
The build parameters supported when running the yfm build command are listed below.
|
Launch flag |
Description |
|
|
Path to the project directory. By default, the current directory. |
|
|
Path to the output directory (required parameter). |
|
|
Name of the variable preset used. |
|
|
Values of variables. |
|
|
Run in strict mode. YFM warnings are treated as errors. Disabled by default. |
|
|
Run in quiet mode. Do not output logs to stdout. Disabled by default. |
|
|
Run in multithreaded mode.
|
|
|
Path to the configuration file. |
|
|
Connecting external extensions at startup. The path passing differs for exec flags and the .yfm configuration. For exec flags, paths are specified relative to the directory where the command is executed. For configuration, paths are passed from the configuration directory. Example:
|
|
|
Launch watch build mode. |
|
|
Configure supported languages. |
|
|
Format of the final build files. Available options: |
|
|
Allow using HTML in markdown files. |
|
|
Enable HTML sanitization. |
|
|
Allow loading custom resources on statically generated pages. |
|
|
Build the article's HTML content as part of the layout. By default, it is in a JS object and is inserted into the page during rendering in the browser. |
|
|
Enable the themer. More details - here. |
|
|
Do not process paths matching the pattern. Example:
or
|
|
|
Do not process table of contents files with the specified level. By default, |
|
|
Select the operating mode for templates. By default, text mode is enabled, which ignores code blocks. Use Possible values:
|
|
|
Toggle the processing mode for variables in double curly braces. Enabled by default. |
|
|
Toggle the processing mode for conditional operators. Enabled by default. |
|
|
Enable fetching data from the VCS. This parameter only controls enabling/disabling. |
|
|
Enable displaying the article modification date. The data is taken from the VCS. |
|
|
Enable displaying the article author. The data is taken from the VCS. |
|
|
Enable displaying contributors in the article. The data is taken from the VCS. |
|
|
Attach the linter file. Enabled by default. To disable, use |
|
|
Enable generation of llms.txt and llms-full.txt files for the project. |
|
|
Limit on the size of the generated llms-full.txt file for a single article; if exceeded, filling the file with data stops with code YFM022 (the build does not fail with an error). Accepts numbers and strings like: 1024, 512K, 2M. |
|
|
Beta feature. Toggle processing of the experimental changelog syntax. |
|
|
Build the project as a single HTML file. See more in the Single-page build section. |
|
|
Generation format. HTML by default, but you can configure building in YFM. |
|
|
Substitute variable values from presets when building in YFM. |
|
|
Remove hidden pages from the build result. Disabled by default. |
|
|
Remove the Note For links without extensions to open correctly, configure the web server to handle paths without |
|
|
Add creation of file.json with all paths to the documentation. Disabled by default. |
|
|
Write a |
|
|
Write a |
|
|
Disable adding the Content-Security-Policy meta tag to generated HTML pages. Enabled by default. |
|
|
Limit on the asset size in the project; if exceeded, the build fails with the error YFM013. Accepts numbers and strings like: 1024, 512K, 2M. If you specify 0, asset size checking will not be performed. By default, 64M. |
|
|
Limit on the size of the HTML content of a single article; if exceeded, the build fails with the error YFM012. Accepts numbers and strings like: 1024, 512K, 2M. Works only when building with By default, 42M, maximum value 96M. |
|
|
Maximum allowed size of an SVG image at which it is automatically inlined into the article content. If the size is exceeded, the SVG image is inserted via the <img> tag. Accepts numbers and strings like: 1024, 512K, 2M. If you specify 0, SVG images will not be inlined during the build. By default, 2M, maximum value 16M. |
|
|
Maximum allowed size of a file built from an OpenAPI specification. If the file size is exceeded, the JSON schema is cut out of it. Accepts numbers and strings like: 1024, 512K, 2M. If you specify 0, there is no limit. |
|
|
Enables support for multiple line breaks in tooltips. |
|
|
Current version. |
To view the full list of keys, run the command yfm build --help.