Schema.org provides a standardized vocabulary of tags (structured data) that you can add to your HTML to help search engines understand the content of your pages.
Schema Types for Documentation
For documentation, common Schema types might include:
TechArticle – For technical documentation and how-to guides.
Refer to Google’s feature guide for examples and best practices.
Add JSON-LD in the MkDocs Material Theme
The most maintainable way to add JSON-LD to MkDocs and the MAterial theme is by embedding JSON-LD (JavaScript Object Notation for Linked Data) into your site’s HTML.
If you use the mkdocs-material theme, simply edit or extend your main.html template:
If you do not use the mkdocs-git-revision-date-localized-plugin plugin, but track the date in the frontmatter of your .md files, you can replace git_creation_date_localized with page.meta.date. In this case, your frontmatter requires a date item. Example:
---title: "Getting Started"description: "How to install and use the project."date: 2025-05-10---
Tip
You can create a template for each Schema type and reference the template in the frontmatter of your .md files. You can also mass-assign a template using Material’s build-in meta plugin.
---title: "Getting Started"description: "How to install and use the project."template: TechArticle.html---