Giter Club home page Giter Club logo

Comments (4)

pawamoy avatar pawamoy commented on June 14, 2024 1

Could you elaborate why you want this feature?

from mkdocs.

pawamoy avatar pawamoy commented on June 14, 2024 1

In this case I was using uppercase keys and was wrongly assuming case did not matter.

I think it is safe to generally assume that YAML keys are case-sensitive, since YAML itself is case-sensitive.

Since I already have a lot of documents with uppercase keys

Do you mean that you have a lot of Markdown pages with front-matter metadata using uppercase keys, to configure for example plugins or your own metadata? Then you'd like to use uppercase for MkDocs own metadata, for consistency's sake?

IMO it is not worth it, and case-insensitivity does not play well with other tools anyway, such as JSON schemas describing possible keys and values. This could also make things confusing: if keys are case-insensitive in front-matter, are they too in mkdocs.yml? if no, why not? etc.

from mkdocs.

venthur avatar venthur commented on June 14, 2024

Sure, the requirement that all keys are case sensitive and mkdocs expects them to be lowercase, was surprising behavior for me and I only found out about it after specifically searching for case sensitivity in the docs when things did not work for me as expected. In this case I was using uppercase keys and was wrongly assuming case did not matter.

Since I already have a lot of documents with uppercase keys, I was looking for an configuration option to change the default.

I'm not suggesting that the current default is wrong, I'm just wondering if one could add an config option to make the keys case-insensitive.

from mkdocs.

oprypin avatar oprypin commented on June 14, 2024

Hm sorry, that's not a convincing use case. Even you will be better off by globally replacing the existing keys with a consistent style of keys rather than enabling a case-insensitive mode if it existed.

from mkdocs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.