LoginSignup
0
0

More than 5 years have passed since last update.

mkdocsのビルド時に「ConfigurationError: Line in 'page' config is of type <type 'NoneType'>, dict or string」 というエラーメッセージが表示された場合の対処法

Posted at

mkdocsで勉強用ノートをまとめてるのですが、ある日記事を保存した際に、
「ConfigurationError: Line in 'page' config is of type , dict or string」というエラーがでてしまい、ローカルのサーバで起動できなくなってしまいました。

原因

mkdocs.yml ファイルの、pages:部分にハイフンだけの箇所があったことが原因でした。。
mkdocsを使い始めた人は参考にしてみてください。

エラーになった mkdocs.yml

※ pages:部分のみを抜粋しています。

pages:
- HOME: index.md
- サーバサイド編:
     - JSPとか基礎: servlet.md
   - ディレクティブとか: dir.md
     - JSPとServletの連携: jsp_servlet.md
     - リダイレクトとフォワード: redirect_forward.md
- Spring編:
     - DIなど:di.md
     - springboot:boot.md
     - 
     - MVC:mvc.md
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