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.

Check out the demo – squidfunk.github.io/mkdocs-material.

 

Silver sponsors

 

Bronze sponsors

 

Everything you would expect

It's just Markdown

Focus on the content of your documentation and create a professional static site in minutes. No need to know HTML, CSS or JavaScript – let Material for MkDocs do the heavy lifting for you.

Works on all devices

Serve your documentation with confidence – Material for MkDocs automatically adapts to perfectly fit the available screen estate, no matter the type or size of the viewing device. Desktop. Tablet. Mobile. All great.

Made to measure

Make it yours – change the colors, fonts, language, icons, logo, and more with a few lines of configuration. Material for MkDocs can be easily extended and provides many options to alter appearance and behavior.

Fast and lightweight

Don't let your users wait – get incredible value with a small footprint by using one of the fastest themes available with excellent performance, yielding optimal search engine rankings and happy users that return.

Maintain ownership

Own your documentation's complete sources and outputs, guaranteeing both integrity and security – no need to entrust the backbone of your product knowledge to third-party platforms. Retain full control.

Open Source

You're in good company – choose a mature and actively maintained solution built with state-of-the-art Open Source technologies, trusted by more than 50,000 individuals and organizations. Licensed under MIT.

Quick start

Material for MkDocs can be installed with pip:

pip install mkdocs-material

Add the following lines to mkdocs.yml:

theme:
  name: material

For detailed installation instructions, configuration options, and a demo, visit squidfunk.github.io/mkdocs-material

Trusted by ...

... industry leaders

ArXiv, Atlassian, AWS, Bloomberg, CERN, Datadog, Google, Harvard, Hewlett Packard, HSBC, ING, Intel, JetBrains, LinkedIn, Microsoft, Mozilla, Netflix, OpenAI, Red Hat, Roboflow, Salesforce, SIEMENS, Slack, Square, Uber, Zalando

... and successful Open Source projects

Amp, Apache Iceberg, Arduino, Asahi Linux, Auto-GPT, AutoKeras, BFE, CentOS, Crystal, eBPF, ejabberd, Electron, FastAPI, FlatBuffers, {fmt}, Freqtrade, GoReleaser, GraphRAG, Headscale, HedgeDoc, Hummingbot, Knative, Kubernetes, kSQL, LeakCanary, LlamaIndex, NetBox, Nokogiri, OpenAI, OpenFaaS, OpenSSL, Orchard Core, Percona, Pi-Hole, Polars, Pydantic, PyPI, Quivr, Renovate, RetroPie, Ruff, Supervision, Textual, Traefik, Trivy, Typer, tinygrad, Ultralytics, UV, Vapor, WebKit, WTF, ZeroNet

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…

Что это такое?Material for MkDocs — это тема оформления и фреймворк на основе MkDocs, который превращает файлы Markdown в профессиональный статический сайт документации с поиском.
Это тема для MkDocs или самостоятельный генератор статических сайтов?Это тема и фреймворк, который расширяет MkDocs, а не заменяет его: контент по-прежнему пишется в Markdown, сайт собирает MkDocs, а Material отвечает за оформление, поведение и плагины.
Как это запустить?Установите через pip, затем добавьте несколько строк в mkdocs.yml, чтобы назначить эту тему.
Нужно ли сначала установить Python?Да, это пакет Python, который распространяется через pip, поэтому нужна рабочая среда Python и pip.
Нужно ли знать HTML, CSS или JavaScript, чтобы этим пользоваться?Нет: проект устроен так, что вы пишете только Markdown и настраиваете YAML, а отрисовку HTML, CSS и JavaScript берёт на себя тема.
Кто уже использует это в продакшене?Этому инструменту доверяют как крупные компании, так и проекты с открытым исходным кодом, включая AWS, Google, Microsoft, Kubernetes, FastAPI и Pydantic.
Будет ли сайт документации работать и на телефонах, и на планшетах?Да, тема автоматически подстраивает макет под экраны компьютеров, планшетов и телефонов.
Хранится ли моя документация на стороннем сервисе?Нет: вы сохраняете полное владение исходными файлами и готовой сборкой, поэтому ваш контент не зависит от внешнего сервиса хостинга.
Можно ли изменить оформление сайта?Да, цвета, шрифты, язык, иконки и логотип меняются несколькими строками конфигурации, а тема рассчитана на простое расширение.
Поддерживает ли она несколько языков для документации?Да, поддерживается более 60 языков для содержимого сайта и поиска.
Есть ли встроенный поиск?Да, в проект входит клиентский поиск на основе lunr и lunr-languages, поэтому документацию можно искать сразу, без сервера.
Зачем выбирать это, а не обычную тему для MkDocs?Тема оптимизирована по скорости и небольшому размеру, при этом предлагает широкие возможности настройки (цвета, шрифты, иконки). Её активно поддерживают и используют более 50 000 людей и организаций, поэтому набор функций зрелый и проверен временем.
Creator
squidfunk
Size
144.1 MB
Stars
27.6K
Age
10y
Commits · 90 Days