Artifact authoring FAQ
Prepare diagrams, images, styles and interactive controls for a single-file HTML artifact.
On this page
Publish a self-contained HTML document with inline CSS. The CLI packages local images, checks the markup and reports how the page’s scripts will run. These authoring choices affect what reviewers see after upload.
How do I include a diagram without loading Mermaid from a CDN?
Put Mermaid source inside a preformatted block with the mermaid class. Pushbag renders the diagram to SVG during upload. An invalid diagram stops publication so you can fix the source locally.
<pre class="mermaid">
graph LR
Draft --> Review
Review --> Approved
</pre>
Use the CLI upload command on the finished HTML file. Leave out the external Mermaid script tag.
Why is a screenshot visible locally but missing from my report?
Place the screenshot beside the HTML file and reference it with a relative path. The CLI resolves the path relative to that file and embeds the image as a data URI before publishing. Passing --no-inline skips this step. A browser opening the shared URL cannot read files from your machine.
<figure>
<img src="checkout.png" alt="Checkout with the new delivery options">
<figcaption>Delivery options after the checkout update.</figcaption>
</figure>
Check inlinedImages in the upload’s JSON result. If the file grows too large, resize the source image and publish again. See plan limits.
Can I add collapsible sections without JavaScript?
Use the built-in details and summary elements. They let a reviewer expand log output without requiring script execution.
<details>
<summary>Integration test log</summary>
<pre>24 tests passed</pre>
</details>
For styled reports, put the CSS in a style element in the document. An external stylesheet link fails upload policy checks.
Why does an interactive page open inside a frame?
A page with inline scripts runs in an isolated frame. Scripts can update the page, but the frame restricts network requests and remote assets. The CLI explains the classification before publication. With --json, inspect the HTML result’s scripts.tier and scripts.findings. A warning banner is distinct from a rejected upload. For the packaged guidance on supported authoring patterns, run pushbag guide.