Need way to add Permission-Policy directives associated with an API to its sidebar
hamishwillee opened this issue · comments
Summary
API sidebars are generated from GroupData.json, which has keys for Interfaces, external methods, properties, events, etc. This is supposed to allow all associated guide and reference for an API to be displayed in the sidebar.
However an API can be gated by Permission-Policy directives too, and there is no way to include that information in the sidebar for an API.
The specific case I am interested in is adding screen-wake-lock to Screen_Wake_Lock_API, but there are many cases.
URL
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API
Reproduction steps
NA
Expected behavior
I should be able to add a permission policy directive into the GroupData.json and have it appear in the sidebar.
Actual behavior
I can't
Device
Desktop
Browser
Firefox
Browser version
Stable
Operating system
Windows
Screenshot
No response
Anything else?
No response
Validations
- I have read the Community Participation Guidelines.
- I have verified that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- I have checked that this is a concrete bug. For Q&A open a GitHub Discussion.