0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Warning: Unrecognised configuration nameとなった時の対応方法

Posted at

事象 : 言語で日本語を指定したら怒られた

  • 環境
    • 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)

参考 : Configuration - 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)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?