Skip to content

Publish Saved View images

Publish a picture of every Saved View with the site, at a URL that never changes, so a wiki page or README 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 drawn to views/<view-id>.svg in the site, with any : or / in its id turned into -. Embed it, and link it to the same View in the viewer so readers can explore it:

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

After the next deploy, open a View’s picture, such as https://<owner>.github.io/<repo>/views/shop-checkout-impact.svg. The picture is styled like the viewer and drawn for the latest Revision.

To see which files CI writes, run the same command locally:

Terminal window
archidocs export --all-saved --out views
Wrote views/digital-mainframe-outage.svg
Wrote views/digital-prod-deployment.svg
Wrote views/digital-sign-in.svg
Wrote views/digital-sign-in-path.svg
Wrote views/payments-make-a-payment.svg

If the picture’s URL is not found, check the file name: : and / in the View id become -. A Generated View, such as c2, gets no picture; save it as a View first.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.