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.
Before you start
Section titled “Before you start”- The site publishes from CI. See Publish to GitHub Pages or Publish to GitLab Pages.
- The Workspace has at least one Saved View. See Save a View.
1. Turn images on
Section titled “1. Turn images 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.
2. Embed one
Section titled “2. Embed one”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:
[](https://<owner>.github.io/<repo>/#/view/shop:checkout-impact)Check it worked
Section titled “Check it worked”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:
archidocs export --all-saved --out viewsWrote views/digital-mainframe-outage.svgWrote views/digital-prod-deployment.svgWrote views/digital-sign-in.svgWrote views/digital-sign-in-path.svgWrote views/payments-make-a-payment.svgIf it didn’t
Section titled “If it didn’t”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.
Related
Section titled “Related”- Export diagrams, for pictures anywhere else, in PNG, or one View at a time
- GitHub Action reference
- Save a View
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.