Skip to content

Warn on unknown configuration settings #1595

Open
@ehuss

Description

@ehuss

When there are unknown settings in book.toml, mdbook just ignores them:

[book]
title = "foo"
abc = 123

This has occasionally caused problems and confusion for people when they make typos or mistakes. I think it would be good for unknown options to issue a warning. serde_ignored provides a facility for catching these unknown fields.

Some care will need to be taken to consider things like plugins which can add their own sections to the config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ConfigurationArea: ConfigurationA-ErrorsArea: Errors and warningsBreaking ChangeThis would require a SemVer breaking change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions