__I checked that...__
After upgrading mkdocs-material to version 5, when using a specific language (e.g. es) it can't build the site.
To build the site in the specified language (if it's one of the supported languages).
An error is thrown.
material5.mkdocs-material in it (it gets the latest version, 5)docs../docs/tutorial.md.mkdocs.yml file with:site_name: MkLorum
theme:
name: material
language: es
So, the directory tree looks something like:
.
โโโ docs
โย ย โโโ tutorial.md
โโโ mkdocs.yml
โโโ poetry.lock
โโโ pyproject.toml
Then serve with mkdocs:
$ mkdocs serve
...
File "/home/user/.cache/pypoetry/virtualenvs/material5-JlbqKcKF-py3.6/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/home/user/.cache/pypoetry/virtualenvs/material5-JlbqKcKF-py3.6/lib/python3.6/site-packages/material/partials/language/es.html", line 16, in template
"search.config.lang": "es",
jinja2.exceptions.TemplateSyntaxError: expected token ',', got ':'
An error is thrown :cry:
But removing the language: es, so that mkdocs.yml is like:
site_name: MkLorum
theme:
name: material
Fixes the error:
$ mkdocs serve
INFO - Building documentation...
INFO - Cleaning site directory
INFO - Documentation built in 0.13 seconds
[I 200407 21:03:39 server:296] Serving on http://127.0.0.1:8000
INFO - Serving on http://127.0.0.1:8000
[I 200407 21:03:39 handlers:62] Start watching changes
INFO - Start watching changes
[I 200407 21:03:39 handlers:64] Start detecting changes
INFO - Start detecting changes
python --version: Python 3.6.9 :: Anaconda custom (64-bit)mkdocs --version: mkdocs, version 1.1pip show mkdocs-material | grep -E ^Version: Version: 5.0.0site_name: MkLorum
theme:
name: material
language: es
Confirmed! It's actually a syntax error in the template. Fixed in 184dfea0, will issue 5.0.1 straight away.
5.0.1 was just released. Thanks for reporting!
Wow, that was fast! Thanks a lot!
And I didn't say before, thanks for this awesome theme! I'm using it everywhere :smile:
(https://fastapi.tiangolo.com/ and https://typer.tiangolo.com/)