feat: Add examples from schema#185
Conversation
|
Marking as draft for the moment while we look at the upstream examples / schema |
argl
left a comment
There was a problem hiding this comment.
Having to import explicitely in every file looks a bit clumsy. But if that is the astro way, go with the flow. Otherwise fine, this is a valuable step towards a cleaner data flow and a welcome automation.
Agreed, can you check 7561a33 |
Yes, that looks much nicer. The IDE problem is on the linter side in my view. It should be possible to configure auto-imported/global objects. |
|
Can we remove anything that's boolean? We should remove the boolean examples is the schema as well (this is what Chrome does) And then we should write code that generates the mac policy example based on the JSON example. I'll look to remove OMA-URIs completely and make them part of the policy templates. |
For this PR, let's hide them. The improvements / changes to the schema come from upstream.
Sounds great, let's have a look in a follow-up Also removing the policies.json pseudo based on out-of-band discussion with MKaply. |
|
Merging now, thanks! |
Description:
Additions:
## Examplessection to each pagePolicyExamplecomponent, reading from the schema by policy nameChanges:
<PolicyExample policy="PolicyName" />component on each pageMotivation:
Copy-paste ready examples, sourced from the schema
Related issues and pull requests: