Comments (4)
Could you elaborate why you want this feature?
from mkdocs.
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.
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.
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)
- Improve performance and authoring experience of `mkdocs serve` HOT 14
- Emit INFO instead of WARNING for Deprecated options HOT 5
- Break search plugin out into separate package HOT 8
- Empty mkdocs_theme.yml breaks build
- Generate nav with links to headers HOT 1
- ModuleNotFoundError: No module named 'mkdocs.tests' HOT 1
- FR: Anchor validation warning should remind the user it's case sensitive, especially if there are case-insensitive matches. HOT 3
- Anchor validation and special characters. HOT 2
- How to specify the port in MkDocs HOT 1
- AttributeError: 'EntryPoints' object has no attribute 'get' in xarray.backends HOT 1
- Should the markdown renderer treat a single line break as <br>? HOT 2
- Feature Request: Extend the `on_page_context` event with the reference to the Jinja2 Environment HOT 1
- Mkdocs no longer respecting set display text for same .md files. HOT 3
- Cannot get mkdocs to recognize the caseinsensitive plugin HOT 1
- Table display “flickers” when refreshing the page HOT 2
- sourcing an external js library with in mkdocs HOT 6
- Please allow running MkDocs with Docker and strict mode HOT 6
- Default theme: N and P keys no longer work HOT 4
- ERROR - Config value 'docs_dir': The path 'mkdocs/Docs' isn't an existing directory. HOT 1
- Errors in macros plugin result in zero exit code HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkdocs.