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.
Turn them on
Section titled “Turn them on”On GitHub, set the Action’s images input:
- uses: chalharb/archidocs@v1 id: archidocs with: images: trueOn 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.
Embed one
Section titled “Embed one”Link the picture to the same View in the viewer, https://<owner>.github.io/<repo>/#/view/shop:checkout-impact, so readers can explore it.
Without CI
Section titled “Without CI”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:
archidocs export --all-saved --out viewsSee Export diagrams for themes, PNG and one View at a time.