mkdocs-material/docs/setup/index.md
2023-04-06 15:03:41 +02:00

5.8 KiB
Raw Blame History

Setup

Material for MkDocs offers a wide range of options for customizing and adjusting your documentation. In this section, we will explain how to make the most use of Material for MkDocs to change the look of your documentation, add more content, improve its functionality, and work with extensions.

Customizing the look

Make your documentation reflect your brand by changing its colors, fonts, icons, logo, and more with just a few lines of configuration. Material for MkDocs makes it easy to extend the basic configurations and provides many options to alter the appearance.

  • :material-brush-variant: Colors Change colors with an existing color palette or customize with CSS
  • :fontawesome-regular-file-word: Fonts Change fonts using Google Fonts or load self-hosted fonts
  • :material-google-downasaur: Logo & Icons Change the logo, use any of the +8,000 icons, or add new ones

Adding additional content

Easily extend the content of your documentation. Adjusting headers, including a footer, creating a blog, implementing comment systems, and automatically creating social media previews.

  • :material-format-header-1: Header Customize the header using different configurations
  • :material-format-font-size-decrease: Footer Add links to social media or other websites in the footer
  • :material-cards-variant: Social Cards Create automated Social Media previews when sharing links
  • :material-book-open-outline: Blog Build a standalone blog or expand your documentation with one
  • :material-comment-text-outline: Comment System Add a third-party comment system on any page or footer

Enhancing functionality

Improve the functionality of your documentation by integrating navigation and site search, categorizing pages using tags, changing the language, or adding multiple languages, and deploying multiple versions.

  • :material-navigation-variant-outline: Navigation Create a clear, concise, and comprehensive navigation structure
  • :material-tab-search: Site Search Set up an excellent client-side search implementation
  • :fontawesome-solid-earth-americas: Language Change the language using one of the +50 existing translations
  • :octicons-tag-16: Tags Categorize your pages with tags and group related pages
  • :octicons-versions-16: Versioning Deploy multiple versions by integrating with external utilities

Optimizing your site

Optimize your site by displaying information from your Git repository, getting a higher ranking on search engines, ensuring compliance with data privacy regulations, and unlocking offline usage.

  • :fontawesome-brands-git: Git Repository Display information to your project's repository on your static site
  • :material-screwdriver: Optimized site Create optimized sites that rank great on search engines, i.a.
  • :octicons-lock-16: Data Privacy Ensure compliance with data privacy regulations
  • :octicons-cloud-offline-16: Offline usage Build an online and offline-capable documentation

Working with extensions

Extend the range of available features and enhance your technical writing by working with extensions in your documentation.

  • :material-language-python: Python Markdown Unlock a large range of features that require Python Markdown
  • :material-plus-box: Python Markdown Extension Advance your technical writing with a collection of extensions

Dependencies

Install external libraries to allow for image processing as part of the build pipeline to make use of social cards and image optimization features.

  • :fontawesome-regular-image: Image processing Install external libraries for image processing during the build pipeline