2016-08-07 19:01:56 +03:00
|
|
|
|
# Material <small>for MkDocs</small>
|
2016-02-09 23:59:37 +03:00
|
|
|
|
|
2017-01-03 01:11:32 +03:00
|
|
|
|
## Build beautiful documentation
|
2016-02-09 23:59:37 +03:00
|
|
|
|
|
2017-01-03 01:11:32 +03:00
|
|
|
|
Material is a theme for [MkDocs][1], an excellent static site generator geared
|
|
|
|
|
towards project documentation. It is built using Google's [material design][2]
|
2016-02-17 20:08:11 +03:00
|
|
|
|
guidelines, full responsive, optimized for touch and pointer devices as well
|
|
|
|
|
as all sorts of screen sizes.
|
2016-02-09 23:59:37 +03:00
|
|
|
|
|
2016-02-17 20:08:11 +03:00
|
|
|
|
Material is very lightweight – it is built from scratch using Javascript and
|
|
|
|
|
CSS that weighs less than 30kb (minified, gzipped and excluding Google Fonts
|
|
|
|
|
and Analytics). Yet, it is highly customizable and degrades gracefully in older
|
2016-02-09 23:59:37 +03:00
|
|
|
|
browsers.
|
|
|
|
|
|
2017-01-03 01:11:32 +03:00
|
|
|
|
[1]: http://www.mkdocs.org
|
|
|
|
|
[2]: https://www.google.com/design/spec/material-design
|
|
|
|
|
|
2016-02-24 19:31:01 +03:00
|
|
|
|
## Quick start
|
|
|
|
|
|
2017-01-03 01:11:32 +03:00
|
|
|
|
Install the latest version of Material with `pip`:
|
2016-02-24 19:31:01 +03:00
|
|
|
|
|
|
|
|
|
``` sh
|
|
|
|
|
pip install mkdocs-material
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Add the following line to your `mkdocs.yml`:
|
|
|
|
|
|
|
|
|
|
``` yaml
|
|
|
|
|
theme: 'material'
|
|
|
|
|
```
|
|
|
|
|
|
2016-02-09 23:59:37 +03:00
|
|
|
|
## Features
|
|
|
|
|
|
2016-02-17 20:08:11 +03:00
|
|
|
|
- Beautiful, readable and very user-friendly design based on Google's material
|
|
|
|
|
design guidelines, packed in a full responsive template with a well-defined
|
2016-02-24 19:31:01 +03:00
|
|
|
|
and [easily customizable color palette][], great typography, as well as a
|
|
|
|
|
beautiful search interface and footer.
|
2016-02-09 23:59:37 +03:00
|
|
|
|
|
2016-02-17 20:08:11 +03:00
|
|
|
|
- Well-tested and optimized Javascript and CSS including a cross-browser
|
2016-02-09 23:59:37 +03:00
|
|
|
|
fixed/sticky header, a drawer that even works without Javascript using
|
2016-02-17 20:08:11 +03:00
|
|
|
|
the [checkbox hack][] with fallbacks, responsive tables that scroll when
|
|
|
|
|
the screen is too small and well-defined print styles.
|
2016-02-09 23:59:37 +03:00
|
|
|
|
|
2016-02-17 20:08:11 +03:00
|
|
|
|
- Extra configuration options like a [project logo][], links to the authors
|
2016-03-12 15:21:06 +03:00
|
|
|
|
[GitHub and Twitter accounts][], display of the amount of stars the
|
|
|
|
|
project has on GitHub and [Google Analytics integration][].
|
2016-02-09 23:59:37 +03:00
|
|
|
|
|
2016-02-17 20:08:11 +03:00
|
|
|
|
- Easily [extendable and customizable][] due to a well-designed asset pipeline
|
2016-02-09 23:59:37 +03:00
|
|
|
|
built on-top of [Gulp][] with `npm` and `bower` and modular and abstracted
|
|
|
|
|
style definitions built with [SASS][].
|
|
|
|
|
|
2016-02-24 19:31:01 +03:00
|
|
|
|
- Web application capability on iOS – when the page is saved to the homescreen,
|
2016-02-17 20:08:11 +03:00
|
|
|
|
it behaves and looks like a native application.
|
2016-02-09 23:59:37 +03:00
|
|
|
|
|
2016-02-16 19:04:03 +03:00
|
|
|
|
See the [getting started guide](getting-started.md) for instructions how to get
|
2016-02-09 23:59:37 +03:00
|
|
|
|
it up and running.
|
|
|
|
|
|
2017-01-03 01:11:32 +03:00
|
|
|
|
|
2016-02-17 20:08:11 +03:00
|
|
|
|
[checkbox hack]: http://tutorialzine.com/2015/08/quick-tip-css-only-dropdowns-with-the-checkbox-hack/
|
|
|
|
|
[project logo]: getting-started.md#adding-a-logo
|
2016-02-24 19:31:01 +03:00
|
|
|
|
[easily customizable color palette]: getting-started.md#changing-the-color-palette
|
2016-02-17 20:08:11 +03:00
|
|
|
|
[GitHub and Twitter accounts]: getting-started.md#adding-a-github-and-twitter-account
|
2016-03-12 15:21:06 +03:00
|
|
|
|
[Google Analytics integration]: getting-started.md#google-analytics-integration
|
2016-02-17 20:08:11 +03:00
|
|
|
|
[extendable and customizable]: customization.md
|
2016-02-09 23:59:37 +03:00
|
|
|
|
[Gulp]: http://gulpjs.com
|
2016-10-12 10:13:57 +03:00
|
|
|
|
[SASS]: http://sass-lang.com
|