# Reference Material for MkDocs is packed with many great features that make technical writing a joyful activity. This section of the documentation explains how to set up a page, and showcases all available specimen that can be used directly from within Markdown files. ## Configuration ### Built-in typeset plugin [:octicons-heart-fill-24:{ .mdx-heart } Sponsors only][Insiders]{ .mdx-insiders } · [:octicons-tag-24: insiders-4.27.0][Insiders] · :octicons-cpu-24: Plugin · :octicons-beaker-24: Experimental The built-in typeset plugin __preserves HTML formatting__ in the navigation and table of contents. This means that now, code blocks, icons, emojis and other inline formatting will be preserved, which allows for a richer editing experience. Add the following lines to `mkdocs.yml`: ``` yaml plugins: - typeset ``` For a demo, just take a look at the table of contents of this page :material-arrow-right-circle: – code blocks and icons are preserved from the section headlines; even [highlighting inline code blocks] is supported :tada: [highlighting inline code blocks]: code-blocks.md#highlighting-inline-code-blocks ### Built-in meta plugin [:octicons-heart-fill-24:{ .mdx-heart } Sponsors only][Insiders]{ .mdx-insiders } · [:octicons-tag-24: insiders-4.21.0][Insiders] · :octicons-cpu-24: Plugin · :octicons-beaker-24: Experimental The built-in meta plugin allows to __set front matter per folder__, which is especially handy to ensure that all pages in a folder use specific templates or tags. Add the following lines to `mkdocs.yml`: ``` yaml plugins: - meta ``` > If you need to be able to build your documentation with and without > [Insiders], please refer to the [built-in plugins] section to learn how > shared configurations help to achieve this. The following configuration options are available: [`meta_file`](#+meta.meta_file){ #+meta.meta_file } : :octicons-milestone-24: Default: `**/.meta.yml` – This option specifies the name of the meta files that the plugin should look for. The default setting assumes that meta files are called `.meta.yml`: ``` yaml plugins: - meta: meta_file: '**/.meta.yml' # (1)! ``` 1. Note that it's strongly recommended to prefix meta files with a `.`, since otherwise they would be included in the build output. [built-in blog plugin]: ../setup/setting-up-a-blog.md#built-in-blog-plugin [built-in plugins]: ../insiders/getting-started.md#built-in-plugins ## Usage ### Setting the page `title` Each page has a designated title, which is used in the navigation sidebar, for [social cards] and in other places. While MkDocs attempts to automatically determine the title of a page in a [four step process], the title can also be explicitly set with the front matter `title` property: ``` yaml --- title: Lorem ipsum dolor sit amet # (1)! --- # Document title ... ``` 1. This line sets the [`title`][title] inside the HTML document's [`head`][head] for the generated page to the given value. Note that the site title, which is set via [`site_name`][site_name], is appended with a dash. [social cards]: ../setup/setting-up-social-cards.md [four step process]: https://www.mkdocs.org/user-guide/writing-your-docs/#meta-data [title]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title [head]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head [site_name]: https://www.mkdocs.org/user-guide/configuration/#site_name ### Setting the page `description` A Markdown file can include a description that is added to the `meta` tags of a page, and is also used for [social cards]. It's a good idea to set a [`site_description`][site_description] in `mkdocs.yml` as a fallback value if the author does not explicitly define a description for a Markdown file: ``` yaml --- description: Nullam urna elit, malesuada eget finibus ut, ac tortor. # (1)! --- # Document title ... ``` 1. This line sets the `meta` tag containing the description inside the document `head` for the current page to the provided value. [site_description]: https://www.mkdocs.org/user-guide/configuration/#site_description ### Setting the page `icon` [:octicons-tag-24: 9.2.0][Page icon support] · :octicons-beaker-24: Experimental An icon can be assigned to each page, which is then rendered as part of the navigation sidebar, as well as [navigation tabs], if enabled. Use the front matter `icon` property to reference an icon, adding the following lines at the top of a Markdown file: ``` yaml --- icon: material/emoticon-happy # (1)! --- # Document title ... ``` 1. Enter a few keywords to find the perfect icon using our [icon search] and click on the shortcode to copy it to your clipboard:
[Page icon support]: https://github.com/squidfunk/mkdocs-material/releases/tag/9.2.0 [Insiders]: ../insiders/index.md [icon search]: icons-emojis.md#search [navigation tabs]: ../setup/setting-up-navigation.md#navigation-tabs ### Setting the page `status` [:octicons-tag-24: 9.2.0][Page status support] · :octicons-beaker-24: Experimental A status can be assigned to each page, which is then displayed as part of the navigation sidebar. First, associate a status identifier with a description by adding the following to `mkdocs.yml`: ``` yaml extra: status: