smeds / mkdocs_yaml_schema_plugin Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Currently a description for every second-level item is implicitly required, and not having one will result in a KeyError
:
mkdocs_yaml_schema_plugin/mkdocs_yaml_schema_plugin/markdown.py
Lines 48 to 52 in f9f943c
I guess it is reasonable to require a description to encourage better documentation, but it would probably be better if this was done explicitly. My suggestion is to either catch the exception and re-raise it with a better message to indicate what file and item is failing, or simply default to an empty description.
The same applies to the item type; should be there, but should probably be made explicit.
I'd be happy to submit a PR if we can decide on what solution would be best.
Antingen ge tillbaka tom tabell eller vettigt felmeddelande
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.