mkdocs-material README

The project's README from github.com/squidfunk/mkdocs-material. As one markdown file: README.md.

Material for MkDocs

A powerful documentation framework on top of MkDocs

Build Downloads Python Package Index Docker Pulls

Write your documentation in Markdown and create a professional static site for your Open Source or commercial project in minutes – searchable, customizable, more than 60 languages, for all devices.

Material for MkDocs documentation site


[!WARNING]

Material for MkDocs reaches end of life on May 5, 2027. Critical fixes and security updates continue until that date.

We're continuing our work with Zensical, a maintained successor built by the team behind Material for MkDocs. It carries forward what we've learned from building documentation tools with this community, with Markdown authoring, a familiar design, and full control over your content. Zensical is Open Source and MIT-licensed.

You can evaluate Zensical alongside MkDocs using your existing mkdocs.yml. Check plugin compatibility and compare your pages, navigation, search, and customizations before switching. The classic theme variant preserves the appearance of Material for MkDocs. See the migration guide for the steps and current compatibility details.

Upcoming changes on November 5

Quick start

Material for MkDocs requires Python 3.11 or newer. Install it with pip:

pip install mkdocs-material

Add the following lines to mkdocs.yml:

theme:
  name: material

See the installation guide for detailed instructions and the documentation for configuration options.

Used by

Material for MkDocs has been used by projects including FastAPI, Pydantic, Ruff, OpenSSL, AWS Copilot, and Google Accompanist.

Acknowledgments

Thank you to everyone who sponsored Material for MkDocs. Your support made its development possible. We're grateful to the contributors, translators, and users who helped shape the project over the years.

License

MIT License

Copyright (c) 2016-2025 Martin Donath

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

mkdocs-material (squidfunk/mkdocs-material)

Searching Database…

What is this?Material for MkDocs is a documentation theme and framework built on top of MkDocs that turns Markdown files into a professional, searchable static documentation site.
Is this a theme on top of MkDocs or a standalone static site generator?It's a theme/framework that extends MkDocs, not a replacement for it — you still write content in Markdown and MkDocs builds the site, Material just supplies the look, behavior and plugins.
How do I get it running?Install it with pip, then add a few lines to your mkdocs.yml to set it as the theme.
Do I need Python installed first?Yes, it's a Python package distributed via pip, so a working Python/pip environment is required.
Do I need to know HTML, CSS or JavaScript to use it?No — the project is designed so you only write Markdown and configure YAML; it handles the HTML/CSS/JS rendering for you.
Who already uses this in production?It's trusted by major companies and open-source projects alike, including AWS, Google, Microsoft, Kubernetes, FastAPI and Pydantic.
Does my documentation site work on mobile and tablets too?Yes, the theme automatically adapts its layout to desktop, tablet, and mobile screens.
Is my documentation hosted on a third-party platform?No — you keep full ownership of the source files and the generated output, so you aren't relying on an external hosting service for your content.
Can I customize the look of my site?Yes, you can change colors, fonts, language, icons and logo through a few configuration lines, and the theme is built to be easily extended.
Does it support multiple languages for my docs?Yes, it supports more than 60 languages for site content and search.
Is search built in?Yes, the project bundles client-side search via lunr and lunr-languages, so documentation is searchable out of the box without a server.
Why choose this over a plain MkDocs theme?It's optimized for speed and small footprint while offering extensive customization (colors, fonts, icons) and is actively maintained and used by 50,000+ individuals and organizations, giving it a mature, battle-tested feature set.
Creator
squidfunk
Size
144.9 MB
Stars
27.6K
Age
10y
Commits · 90 Days