Replies: 3 comments
-
Thanks for considering including our schema!
I'm not sure what you mean by vendoring. Inline all external schemas into one? That's not feasible for us, but you could certainly post-process the schema and integrate them all into one. There are many third party plugins that integrate with Material for MkDocs for which we just don't have the time to maintain them on our side, so we're happy to include and link to them. If you search for
AFAIK, no.
Probably just ignore them, but YMMV.
I'm, sorry, I don't have numbers on schema use.
Probably not, but again, YMMV. |
Beta Was this translation helpful? Give feedback.
-
This explains vendoring. IMHO, to include the There is another mkdocs.yml schema out there but I do not know where it comes from, who maintains it. It does not seem to be in the MkDocs repo, where I think it should live. If there was interest in doing this, I would happily collaborate on updating this if needed. It should also be hosted in a way that its origin is traceable. Apologies if I missed something/am holding the wrong stick. Am fairly new to JSON schemas. |
Beta Was this translation helpful? Give feedback.
-
Not necessarily inlining, just pulling them all in-tree into check-jsonschema. If mkdocs-material were willing to provide a fully inlined version of the schema (except for external plugins), I would use that very happily.
Thanks; this gets me a better handle on the scope of what I'm looking into! It's the sort of info I thought might be more understandable to the maintainers here than to me, as an outsider. And no trouble about not having stats or numbers. I figured it was a long shot to ask if we have any sense of usage trends (hard to track).
Just to share, validation under I could stub them out with Maybe I'm being too pedantic, but these subtleties define the failure modes of the schema.
This is making me think the payoff from this project is not worth the effort it would cost. It at least gives me pause.
Given that schemastore is completely community driven on github, you can trace their schemata by cracking open their repo and looking at the history. In this case: SchemaStore/schemastore#2768 I think that's a generic "mkdocs" schema though, not specific to mkdocs-material. It may be possible that I'm the one holding the wrong stick now though. 😉 Thanks all for the feedback. I have to keep thinking about this, but I'm starting to tend away from trying to pursue this feature-set. It just seems like "a lot" for something of questionable value. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
👋 Hi there,
check-jsonschema
maintainer here!I have a recent user contribution to try to add the JSON Schema to
check-jsonschema
: python-jsonschema/check-jsonschema#324Unfortunately, there are some issues with this, and as I've done some reading and looking into the mkdocs-material schema, I'm finding just how complex the situation is .
check-jsonschema
targets offline usage inpre-commit.ci
as one of its use-cases, which means that relying on lazy$ref
resolution isn't viable. Schemas are vendored with the tool and need to be collected as part of the package, not fetched at runtime. I could compromise on this, but I'm pretty concerned with how confusing that would be for users -- I'd rather just not add a relevant hook and let users manually specify--schemafile "https://squidfunk.github.io/mkdocs-material/schema.json"
if they want to use our tools together.So I'm now thinking about what it would take to vendor the whole universe of schemas which are referenced from that starting point (
docs/schema.json
). It seems like rather a lot of work to even try.Most of the technical challenges, the "can it be done?" bits are of interest to me, though some are hard enough to give me some pause. I have concerns primarily about "should it be done?" and making some decisions about handling 3rd party inclusions.
I'd appreciate any feedback from the maintainers of mkdocs-material on this front in particular.
plugins.json
, are there other points which reference schemas outside of the repo?squidfunk.github.io
we can consider this a hard-error.I'll note that this is mostly academic for right now. I've convinced myself that this isn't a good "unwinding after work" project I can knock out in a couple of hours and requires a lot more thought.
But I'm curious if there's an immediate 👍 or 👎 reaction from the maintainers, and if there are particular thoughts about how to go about tackling this if I want to give it a try.
Beta Was this translation helpful? Give feedback.
All reactions