Skip to content

Project documentation ​

Project documentation is a set of Markdown pages kept inside the project. Every page is attached to something: an element of the model (a system, container, component or code element) or the project as a whole. An element can have several pages. A page can show live parts of the model in its text: sequence diagrams, API endpoints, broker channels and UI elements.

There are two ways in: through Instruments, where you see all pages of the project, and from an element on the canvas, where you see that element's pages.

Open it from Instruments ​

All of the project's pages, and a new one attached to a container.
  1. In the bar at the top left, open Instruments and choose Project documentation.
  2. The documentation editor opens. On the left is the list of every page in the project, grouped by system and by service. Until you pick a page, the right side says what the editor is for.
  3. To add a page, press the plus on the Documentation row at the top of the list (Add documentation).
  4. Fill in the dialog:
    • Name: the title of the page.
    • Attach: what the page belongs to. Leave Project root for a page about the whole project, or pick an element. Elements are listed by kind: Systems, Containers, Components, Code.
  5. Press Create. The page opens in the editor and appears at the top of the list marked Unsaved until you save it.

Attach a page to an element on the canvas ​

A page created from the element, then opened from the block.
  1. Right-click the block and choose Add → Documentation ("New markdown file for this element").
  2. The Add documentation dialog opens with the element already chosen in Attach. Type a Name and press Create.
  3. Write the page and save it (see below).

To attach an existing page to another element, use Move documentation in the list (see Managing pages).

Open an element's documentation ​

A block that has documentation shows a page icon in its bottom right corner. Its tooltip says, for example, Open service documentation, or how many files there are when there is more than one.

  1. Click the page icon. A Documentation panel opens on the right with the element's name under the title and the list of its pages.
  2. Click a page to open it in the editor.
  3. New documentation at the bottom of the panel starts another page for the same element.

If the project is shared with you for viewing, pages open read-only.

The editor ​

Writing, inserting a table, editing it in the preview, linking an element, saving.

The editor has three columns:

  • The list of the project's pages, on the left. It has a search field (Search documentation…) and a sort button: Recently updated, Recently created, Name A–Z, Name Z–A. The arrow at its edge hides it.
  • Markdown: the source of the page. It is a code editor with Markdown highlighting.
  • Preview: the page as readers see it. It updates as you type, and scrolling one column scrolls the other to the same place.

Each column can be hidden with the arrow in its header and brought back from the strip it leaves at the edge. This is useful on a narrow screen, or when you want to read only.

Writing ​

Write ordinary Markdown: headings, paragraphs, lists, links, quotes, code blocks and tables. Links to other sites open in a new tab. Code blocks in the preview have a Copy code button. HTML tags are not rendered; they are shown as text.

Linking to elements ​

Put an element's name in double square brackets, for example [[Payments API]]. In the preview it becomes a link; clicking it shows that element in the model. If two elements share a name, add the kind: [[container:Payments API]]. The kinds are system, container, component and code. A name that matches nothing is shown as plain marked text, not as a link.

The Insert menu ​

Insert above the Markdown column adds a block where the cursor is:

ItemWhat it adds
Insert tableAn empty table. Pick its size, up to 6 × 6, on the grid.
Insert sequenceA sequence diagram of the element the page is attached to.
Insert endpointAn API endpoint of that element's service, with its request and response.
Insert channelA broker channel of that service, with its message contract.
UI elementA UI element of that front end, with its design and states.

What you can insert depends on what the page is attached to. Sequences are the element's own sequence diagrams. Endpoints, channels and UI elements come from the service the page belongs to: the container itself, the container a component or code element is in, or every container of a system. A page on the project root has none of these to offer, only tables.

The number next to an item says how many there are to choose from; an item with none is greyed out. The picker for sequences, endpoints, channels and UI elements has a search field and lets you select several at once.

Inserted diagrams, endpoints, channels and UI elements are references, not copies. When the endpoint or diagram changes in the model, the page shows the new version. Click one in the preview to open it in its own editor; Instruments → Project documentation brings you back to the page. If the referenced item is deleted, the preview says so, for example "Sequence diagram not found (deleted or moved)".

Tables ​

Tables can be edited in the preview, without touching the Markdown:

  • Click a cell and type.
  • Add row and Add column under the table extend it.
  • Right-click a cell for Delete row and Delete column.

The Markdown column is updated to match.

Saving ​

Press the save button (the disk icon) in the editor's bar. It is active when there are changes and the page is attached to something. The line next to it shows who changed the page last and when.

If you close the editor or switch to another page with unsaved changes, the editor asks first: Discard and close, or Cancel to go back and save.

Managing pages ​

Hover a page in the list to see its buttons:

  • Rename changes the title.
  • Move documentation attaches the page to another element or to the project root.
  • Delete removes the page after a confirmation.