Skip to content

Replace inline status macros (Deprecated_Inline, Experimental_Inline, Non-standard_Inline) #503

@caugner

Description

@caugner

The Web APIs docs uses inline status macros to indicate to users whether a listed feature is deprecated, experimental, or non-standard (see here).

Currently, this requires a scheduled workflow run by @OnkarRuikar that syncs the content with BCD releases, by adding or removing inline macros where necessary. (Note: It also manages the status: frontmatter value.)

In this comment, Onkar cites the sync_bcd.yml workflow in OnkarRuikar/temp that runs daily, executes the minified script in this Gist applying the changes, and opens a content PR.

While this workflow works, it updates the content, and therefore requires manual changes in translated-content to reflect the updates statuses.

Overall, it seems better if this was more dynamically handled in Rari itself.

One solution I have in mind is to add a StatusInline macro that takes a BCD key as parameter:

{{StatusInline('api.ShadowRoot.referenceTarget')}}

The advantage of this is that this creates a clear link between an item in content and a BCD feature, and would allow to show Baseline statuses in the feature, without requiring content updates.

PS: Although the ReadOnlyInline parameter does not indicate a status, and is mostly stable, one could imagine introducing an APIStatusInline macro that adds both the read-only indicator (if deducible from IDL), and the status indicators. However, this wouldn't work for non-standard features, because they don't appear in any IDL.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions