-
Notifications
You must be signed in to change notification settings - Fork 17
Support banners/headers #306
Comments
One thing is that BCD has "standard_track", which inverts the meaning from "non-standard". I think it would be nice to represent this in the JSON as "non-standard", though, since that's the case worth noting. Also, it's a bit upsetting that "non-standard" duplicates information from the |
I think this would be great and I think short term this would get us to remove the macros nicely. I also want to briefly give some more thoughts on banners or status properties. This stuff has been underspecified for a long time and so over in BCD, we've had discussions about how to best go about this. Some comments on how I see this:
I don't want to derail this, though. Maybe the semantics work on status properties can happen in BCD and stumptown-content will pick this up in the body as you propose. In other words, maybe for now don't worry about all this semantic discussions that we need to get through and just pull whatever comes from bcd in the status block (and also take into account the |
I've been thinking about this and here's the weird thing. Currently, pages point to recipes. A recipe lists the things (ingredients) that should be present in a doc, and we expect (for I like all this. So, if there's expected to be a I can think of three options:
In defence of this option, we could imagine a world where BCD didn't include
In defence of this option, it seems likely that the renderer will have to abandon this approach eventually. For example, we would like to include a "BCD summary" thing at the tops of pages. If we do this, are we really going to do it by having build-json insert a new JSON item that essentially duplicates
@ddbeck , @Elchi3 , any wisdom? (Edited to add options, after thinking a bit more.) |
To further complicate things, what about a fourth option: In recipes, we use (Some day, I think it will be good to generate documentation for authors and for JSON consumers based on the recipe file itself. What the recipe means varies a lot, depending on which side of |
I'm a little bit weak on context but I think I can understand the scary implicitness of it working even if the front-matter doesn't have something that it's supposed to have. Hypothetically, would be it possible to overide what the the "BCD computation" does and manually type it? Like this |
I like this (especially
Yes, we could do that too. But then all authors would have to type the same thing over and over again.
I don't think we would want to do this, because that breaks the idea of a single source of truth. |
See mdn/yari#350.
I had thought that this would be doable with no changes in stumptown-content because the underlying info is in BCD. But it might be better to expose BCD's "status" in a more accessible place in the JSON. My suggestion in that case would be to include it in the
body
object, as a new item like:...that is, a
type
of "status" and avalue
which is an array including any of "non-standard", "deprecated", and "experimental". I think if none of these apply the whole item could be omitted.Then this issue would be fixed by making updating build-json to pull that info out of the BCD, and adding this new item to the built JSON.
@Elchi3 , @ddbeck , what do you think?
The text was updated successfully, but these errors were encountered: