事象 : 言語で日本語を指定したら怒られた
- 環境
- Windows10 64bit バージョン1909
- Python 3.8.5
- mkdocs, version 1.1.2
$ mkdocs build
WARNING - Config value: 'language'. Warning: Unrecognised configuration name: language
INFO - Cleaning site directory
INFO - Building documentation to directory: C:\path\to\mkdocs\docs\site
INFO - Documentation built in 0.19 seconds
(mkdocs)
# ...省略...
theme:
name: 'rtd-dropdown'
language: ja
# ...省略...
原因 : インデントがない
参考 : プロジェクトドキュメント構築向け静的サイトジェネレータ『MkDocs』及び『Material for MkDocs』の個人的導入&設定まとめ | Developers.IO
theme
の下の階層で指定するようだ・・・いまいちどの下の階層に設定するとかがわからない。
対応 : 階層を下げる
# ...省略...
theme:
name: 'rtd-dropdown'
language: ja
# ...省略...
$ mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: C:\path\to\mkdocs\docs\site
INFO - Documentation built in 0.20 seconds
(mkdocs)