In this module, you will learn how to:
- Activate documentation tab within
Structurizr
through!docs
- Use the
embed
tag withinmarkdown
file - Leverage
Struturizr
export facilities
⌛ Estimated time to complete: 10 min
You have the ability to specify a dedicated folder that will be processed by Structurizr
to feed its documentation section.
- ✏️ Create a
docs
folder - ✏️ Create a
markdown
file withindocs
folder - ✏️ Fill in some content eg:
+ ## MILA + + `MILA` stands for `Multiple Images Lightweight Acquisition`.
- ✏️ Amend your
workspace.dsl
workspace "MILA" "Multiple Images Lightweight Acquisition" { !identifiers hierarchical !impliedRelationships false + !docs docs
Every markdown
file found in the docs
will be included. This is a good way to provide consolidated material library.
Check your changes by activating Cornifer preview
and navigate to the documentation
tab within Structurizr
.
What if your markdown could embed dynamic & up to date C4
views you can interact with, instead of plain old snapshots you are used to?
- No more tedious and error prone snapshot export & documentation update
- Not only the doc is up to date, but content is interactive
✏️ Amend your previously created markdown
file:
## MILA
`MILA` stands for `Multiple Images Lightweight Acquisition`.
+ ### C4.L
+ ![](embed:SystemLandscape)
Refresh your browser and see how Structurizr
fetches matching views
for you, providing widget reader can interact with (zoom, filter, ...).
Embed
tag is only interpretated by Structurizr
, which is fine if your stack is built around its ecosystem. Maybe you are not so lucky, or you need some plain old materials to feed a slide deck, ... Luckily, Structurizr
provides built-in export facility, making software model
snapshotting straightforward.
Prefer .svg
over .png
if you need to accommodate proper zooming. However, and unfortunately for us, .svg
are still really painful to deal with (eg no preview within Pull Request for non https .svg
).
📘 Completing this stage should lead to this final workspace.
You see how a single software model
can be operated in different ways, surfacing views
that can in turn feed technical documentation or slide deck downstream. Main goal of defining a software model
is to support decision making, wherever they occur, so it is great to see we are not stuck to a corner. Define once, explore where makes sense.
After this documentation interlude, go back to workspace
and see how one could tidy up model
by introducing group
.