- Read ~/code/atlas
- Allowed
- Write _site/
- Allowed
- Write ~/.ssh
- Denied
- Network deploy only
- Asks first
Policy list
data-policy
A <figure data-policy> is a list of rules with a verdict against each one. data-title prints the title bar across the top, the <dl> inside holds the pairs, and a closing <figcaption> is the footnote.
Basic
<figure data-policy data-title="atlas build --watch">
<dl>
<dt><small>Read</small> ~/code/atlas</dt><dd><mark data-tone="go">Allowed</mark></dd>
<dt><small>Write</small> _site/</dt><dd><mark data-tone="go">Allowed</mark></dd>
<dt><small>Write</small> ~/.ssh</dt><dd><mark data-tone="stop">Denied</mark></dd>
<dt><small>Network</small> deploy only</dt><dd><mark data-tone="info">Asks first</mark></dd>
</dl>
<figcaption>Paths are checked before the build starts, not while it runs.</figcaption>
</figure>The <small> at the front of each <dt> is the kind of rule; the path follows it in the mono face.
Notes
data-titleis printed by a::beforeon the figure, so the title bar needs no element.- The
<figcaption>is optional. Leave it out and the figure is the title bar and the list. - The title bar is a solid dark band,
--s72-solidwith its-fgtext. - The
<dl>is a two-column grid, so the verdicts line up on the right whatever the paths are.