Schema URL

Type: object

JSON schema for MkDocs configuration file

All of

1. coreProperties object
2. variant

Definitions

coreProperties object
site_name string

The main title for the project documentation. https://www.mkdocs.org/user-guide/configuration/#site_name

site_url string

Set the canonical URL of the site. This will add a link tag with the canonical URL to the head section of each HTML page. If the 'root' of the MkDocs site will be within a subdirectory of a domain, be sure to include that subdirectory in the setting (https://example.com/foo/). https://www.mkdocs.org/user-guide/configuration/#site_url

repo_url string

When set, provides a link to your repository (GitHub, Bitbucket, GitLab, ...) on each page. https://www.mkdocs.org/user-guide/configuration/#repo_url

repo_name string

When set, provides the name for the link to your repository on each page. https://www.mkdocs.org/user-guide/configuration/#repo_name

edit_uri string

The path from the base repo_url to the docs directory when directly viewing a page, accounting for specifics of the repository host (e.g. GitHub, Bitbucket, etc), the branch, and the docs directory itself. https://www.mkdocs.org/user-guide/configuration/#edit_uri

edit_uri_template string
site_description string

Set the site description. This will add a meta tag to the generated HTML header. https://www.mkdocs.org/user-guide/configuration/#site_description

site_author string

Set the name of the author. This will add a meta tag to the generated HTML header. https://www.mkdocs.org/user-guide/configuration/#site_author

copyright string

Set the copyright information to be included in the documentation by the theme. https://www.mkdocs.org/user-guide/configuration/#copyright

remote_branch string

Set the remote branch to commit to when using gh-deploy to deploy to GitHub Pages. This option can be overridden by a command line option in gh-deploy. https://www.mkdocs.org/user-guide/configuration/#remote_branch

Default: "gh-pages"
remote_name string

Set the remote name to push to when using gh-deploy to deploy to GitHub Pages. This option can be overridden by a command line option in gh-deploy. https://www.mkdocs.org/user-guide/configuration/#remote_name

Default: "origin"
nav object | string[]

This setting is used to determine the format and layout of the global navigation for the site. https://www.mkdocs.org/user-guide/configuration/#nav

theme object | string

Sets the theme and theme specific configuration of your documentation site. https://www.mkdocs.org/user-guide/configuration/#theme

docs_dir string

The directory containing the documentation source markdown files. This can either be a relative directory, in which case it is resolved relative to the directory containing your configuration file, or it can be an absolute directory path from the root of your local file system. https://www.mkdocs.org/user-guide/configuration/#docs_dir

Default: "docs"
site_dir string

The directory where the output HTML and other files are created. This can either be a relative directory, in which case it is resolved relative to the directory containing your configuration file, or it can be an absolute directory path from the root of your local file system. https://www.mkdocs.org/user-guide/configuration/#site_dir

Default: "site"
extra_css string[]

Set a list of CSS files in your docs_dir to be included by the theme. For example, the following example will include the extra.css file within the css subdirectory in your docs_dir. https://www.mkdocs.org/user-guide/configuration/#extra_css

Default:
[]
extra_javascript string[]

Set a list of JavaScript files in your docs_dir to be included by the theme. See the example in extra_css for usage. https://www.mkdocs.org/user-guide/configuration/#extra_javascript

Default:
[]
extra_templates string[]

Set a list of templates in your docs_dir to be built by MkDocs. To see more about writing templates for MkDocs read the documentation about [custom themes] and specifically the section about the [available variables] to templates. See the example in extra_css for usage. https://www.mkdocs.org/user-guide/configuration/#extra_templates

Default:
[]
extra object

A set of key-value pairs, where the values can be any valid YAML construct, that will be passed to the template. This allows for great flexibility when creating custom themes. https://www.mkdocs.org/user-guide/configuration/#extra

Default:
{}
watch string[]

Determines additional directories to watch when running mkdocs serve. https://www.mkdocs.org/user-guide/configuration/#watch

use_directory_urls boolean

This setting controls the style used for linking to pages within the documentation. https://www.mkdocs.org/user-guide/configuration/#use_directory_urls

Default: true
strict boolean

Determines how warnings are handled. Set to true to halt processing when a warning is raised. Set to false to print a warning and continue processing. https://www.mkdocs.org/user-guide/configuration/#strict

Default: false
dev_addr string

Determines the address used when running mkdocs serve. Must be of the format IP:PORT. https://www.mkdocs.org/user-guide/configuration/#dev_addr

Default: "127.0.0.1:8000"
markdown_extensions array | object

This setting lets you enable a list of extensions beyond the ones that MkDocs uses by default (meta, toc, tables, and fenced_code). https://www.mkdocs.org/user-guide/configuration/#markdown_extensions

Default:
[]
hooks array

A list of paths to Python scripts (relative to mkdocs.yml) that are loaded and used as plugin instances. https://www.mkdocs.org/user-guide/configuration/#hooks

plugins array | object

A list of plugins (with optional configuration settings) to use when building the site. See the Plugins documentation for full details. https://www.mkdocs.org/user-guide/configuration/#plugins

Default:
[
  "search"
]
INHERIT string

Define the parent for a configuration file. The path must be relative to the location of the primary file. https://www.mkdocs.org/user-guide/configuration/#configuration-inheritance