LoginSignup
0
0

More than 3 years have passed since last update.

Config value: 'pages'. Warning: The 'pages' configuration option has been deprecated and will be removed in a future release of MkDocs. Use 'nav' instead.となった時の対応方法

Posted at
  • 環境
    • Windows10 Pro バージョン1909
    • Python 3.8.5
    • mkdocs, version 1.1.2

事象 : MkDocsをビルドしたらなんか警告された

> mkdocs build
WARNING -  Config value: 'pages'. Warning: The 'pages' configuration option has been deprecated and will be removed in a future release of MkDocs. Use 'nav' instead.
INFO    -  Cleaning site directory
# ...省略...

原因 : mkdocs.ymlで非推奨のpagesを使っているから

pages:
  - 事前準備: 'index.md'

Version 1.0 (2018-08-03)
The pages configuration setting has been renamed to nav
The pages configuration setting is deprecated and will issue a warning if set in the configuration file. The setting has been renamed nav.
Release Notes - MkDocs

(ざっくり訳)pages設定の名前をnavに変更したから、pagesは非推奨になって使っていると警告を出すから変えてね。

対応 : pagesnavに変える

nav:
  - 事前準備: 'index.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