Skip to content

Saved View images

With images on, the published site also holds a picture of every Saved View, at a URL that never changes. Embed it in a wiki page or a README and it always shows the latest Model.

On GitHub, set the Action’s images input:

.github/workflows/architecture.yml
- uses: chalharb/archidocs@v1
id: archidocs
with:
images: true

On GitLab, set the template’s images input to true.

Each Saved View is rendered to views/<view-id>.svg in the site, with any : or / in its id turned into -: shop:checkout-impact is views/shop-checkout-impact.svg. Pictures are styled like the viewer and drawn for the latest Revision only, never per Revision.

![Checkout impact](https://<owner>.github.io/<repo>/views/shop-checkout-impact.svg)

Link the picture to the same View in the viewer, https://<owner>.github.io/<repo>/#/view/shop:checkout-impact, so readers can explore it.

The Action runs archidocs export --all-saved --format svg into the site. Run it yourself for pictures anywhere else, such as a docs folder or a slide deck:

Terminal window
archidocs export --all-saved --out views

See Export diagrams for themes, PNG and one View at a time.