-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OWD project: use webref as the source for CSS formal syntax, instead of mdn/data #44
Comments
Would this project cover the generation/replacement of https://github.com/mdn/yari/blob/main/kumascript/macros/InterfaceData.json ? I think all the info in it could be generated by one of the package offered by w3c/webref. (Technically it is not in mdn/data, but it looks like a fairly contained project to experiment with w3c/webref) |
I'm not sure this project would - it's intentionally quite a narrow scope - but definitely making more use of webref generally would be worth looking into, to replace various data sources that we sometimes struggle to maintain. |
@dontcallmedom , I filed mdn/yari#4656 the other day, which replaces mdn/data with webref as a source for formal syntax. |
I'd like to add that we have a draft PR that implements this proposal at mdn/yari#4656. It not only uses webref, but also reimplements the macro to use https://www.npmjs.com/package/css-tree to parse the syntax, as a result of which it's able to add pretty-printing and syntax highlighting to the rendered syntax, making it much more readable. |
Oh, this is done :) |
This proposes that we should start using the w3c's webref project as the source of CSS formal syntax, instead of mdn/data.
Problem statement
In our CSS documentation we have a section "Formal syntax". This is built using a KS macro CSSSyntax, which gets the data from the mdn/data repo.
The specifications are the source of truth for this data, so it's not optimal having this separate copy in mdn/data. Sometimes the version in mdn/data falls behind and we have to remember to update it, or people get outdated information.
It turns out that the w3c already makes this information available in a machine-readable way in their webref project. So this issue proposes that we:
Priority assessment
This table checks this project against the OWD prioritization criteria.
Task list
Additional comments
There's a bigger version of this proposal in which we replace not just the formal syntax, but all the CSS data in mdn/data, with webref, and may then be in a position to retire mdn/data entirely. But this is a major step towards that goal, has value in itself and keeps the project small. If, when we get into it, replacing the other CSS data seems straightforward we could consider doing that in this project as well.
The text was updated successfully, but these errors were encountered: