Added documentation on migration

This commit is contained in:
squidfunk 2017-10-31 20:01:15 +01:00 committed by Martin Donath
parent b913a607e9
commit a36bfae62a

View File

@ -32,7 +32,7 @@ pip install mkdocs && mkdocs --version
!!! warning "MkDocs version requirements" !!! warning "MkDocs version requirements"
As of 2.0, Material requires MkDocs >= 0.17.1 Material requires MkDocs >= 0.17.1
[2]: http://www.mkdocs.org [2]: http://www.mkdocs.org
@ -469,6 +469,23 @@ automatically included.
[22]: https://disqus.com [22]: https://disqus.com
## Migration
### From 1.x to 2.0
Material for MkDocs 2.0 requires MkDocs 0.17.1, as this version introduced
changes to the way themes can define options. The following variables inside
your project's `mkdocs.yml` need to be renamed:
* `extra.feature` becomes `theme.feature`
* `extra.palette` becomes `theme.palette`
* `extra.font` becomes `theme.font`
* `extra.logo` becomes `theme.logo`
Localization is now separate in theme language and search language. While
there can only be a single language on theme-level, the search supports
multiple languages which can be separated by commas.
## Extensions ## Extensions
MkDocs supports several [Markdown extensions][23]. The following extensions MkDocs supports several [Markdown extensions][23]. The following extensions