Download a content bundle
A content bundle is your model’s generated documentation, packaged as Markdown files with their diagrams. Every element gets a stable file path, so you can version the result, publish it, or keep it in sync as the model changes.
The content comes from a template that the model’s standard provides. Different templates present the same model differently, for example aimed at a conceptual or a logical audience.
Prerequisites
Section titled “Prerequisites”- A model whose standard provides at least one documentation template. If it provides none, the page explains that instead of offering a download.
-
Open the model and select Content bundles in the left navigation.
-
From the Stack list, select the stack you want. A stack groups templates that belong together, and it determines which templates the next list offers.
-
From the Template list, select the template to render.
-
Leave Include diagrams selected to render each of the model’s diagrams and pack it into the bundle as an SVG and a PNG. Clear it if you only want the text, which is quicker.
-
If the model’s metamodel offers a local diagram template, a Local diagrams list appears below Include diagrams. Leave it at None, or select a template to add a diagram of each element at the top of its section (see Local diagrams). The list needs Include diagrams: while that is cleared, the list is disabled, keeps your choice and reads The download needs Include diagrams. The command keeps the choice.
-
Select Download .zip.
With diagrams included, the page reports progress as it goes: Starting the diagram render…, then Rendering diagrams, then Packaging the bundle…. Rendering runs in the background and can take a little while for a model with many diagrams.
-
When the bundle is ready your browser downloads the
.zipand the page confirms Bundle downloaded.

Changing the stack, the template, the diagram setting, or the local diagrams choice clears the previous result, so what you download always matches what the form currently shows.
A bundle downloaded here always reflects the model’s current working state. To pull the bundle at a named
version instead, use the command line: modeldesk bundle pull --version <name>. See the
CLI reference.
Diagrams that are held back are left out. Every diagram carries a Published setting, on by default; when it
is off, the diagram is neither rendered nor packed, and the Markdown has no figure for it. The setting lives on
the diagram, not on this form, so it applies alike to the bundle you download here, to the one
modeldesk bundle pull writes, and to the Download all diagrams ZIP on the Diagrams page. See
Publishing a diagram.
A diagram that shows no model element is left out as well: an empty frame tells a reader nothing. Neither of its files is packed, and the Markdown has no figure for it. The page notes how many it left out, such as Left out 2 diagrams that draw no model element. Add elements to the diagram in ModelDesk and it is packed again the next time.
Diagrams in the bundle
Section titled “Diagrams in the bundle”Each diagram is in the bundle twice, as an SVG and a PNG. The two files sit side by side under the same name,
one ending in .svg and the other in .png.
In the generated Markdown, each diagram is a figure with a caption. A ready-made diagram is captioned with the type and name of the element it shows, such as “Domein Kern”; a custom diagram is captioned with its own name.
The figure includes the SVG, and ReSpec places it in the page when it builds the document. The SVG keeps the diagram’s text as text and its shapes as vector shapes, so it stays sharp at any zoom. Each element on the diagram links to the section of the document that describes it, and so does each attribute or value row that has a section of its own. Relations and generalisations link too: the line that draws one, and its labels, link to where the document describes it. A line that only points from one element to another, without an element of its own behind it, does not link.
When the SVG is missing, the figure shows the PNG instead, without links. That happens when the diagram’s SVG could not be produced, or when it did not pass the safety check ModelDesk runs on every SVG before it packs it.
Local diagrams
Section titled “Local diagrams”A metamodel can mark a diagram template as local. A local template draws one diagram for each element of the kinds it starts from, for example a diagram of every objecttype with the elements around it. Its diagrams are left out unless you ask for them: the editor does not list or open them, the Download all diagrams ZIP on the Diagrams page leaves them out, and a bundle includes them only when you select the template under Local diagrams, or name it on the command line.
Each local diagram’s two files sit beside its element’s file, named after that file and the template. For the
objecttype in data/model/kern/objecttype/object.md, a template named Omgeving gives
object.omgeving.svg and object.omgeving.png. The figure comes first in the element’s section, right after
its heading and before any other diagram of that element, and is captioned like any ready-made diagram. A
local diagram of an element that has no file of its own, such as an attribute, belongs to the file that holds
that element: its files sit beside that file, and its figure is in that file’s section.
With a local template selected, Command-line access shows the command with --local-diagrams and the
template’s id, and the config with "diagrams": { "local": "<id>" }, so a pull writes the same files. With
Include diagrams cleared the option stays in the command, beside --no-diagrams: the CLI keeps it then, so
the local diagram files an earlier pull wrote stay.
The NL-SBB begrippenkader
Section titled “The NL-SBB begrippenkader”For an NL-SBB model the respec stack offers one template, NL-SBB begrippenkader. It writes the
begrippenkader in the notation Geonovum uses for the begrippen in MIM 1.2:
data/model/index.mdholds the whole begrippenkader: its explanation and IRI, a Begrippenboom with the topbegrippen and everything below them, every begrip from A to Z, the Collecties, and a Bronnen table that lists each brondocument with the begrippen that cite it.- Each begrip is also written to its own file,
data/model/begrip/<name>.md, for a document that includes begrippen one at a time. - A begrip shows its definition in a definition box, followed by its explanation, its examples and a list of its properties, such as its alternative terms, broader and narrower begrippen, matches with other begrippenkaders, collectie, bron and IRI. Editorial notes appear as ReSpec editor’s notes.
A begrip is in the bundle when it sits under one of the begrippenkader’s topbegrippen. A begrip that only
marks a match with another begrippenkader is not documented; a link to it leads to its IRI. The model needs
exactly one begrippenkader: with none, or with more than one, the bundle is refused, and modeldesk bundle pull names the begrippenkaders it found. NL-SBB models have no diagrams, so the bundle holds text only.
Every begrip’s preferred term and alternative terms become ReSpec definitions, so prose you write yourself can
link to a begrip with [=term=], for example [=Territoriaal openbaar lichaam=]. A term that two begrippen
share links to neither of them, so ReSpec reports no duplicate definition.
Add the stylesheets
Section titled “Add the stylesheets”The bundle ships no stylesheet. Two small ones in your documentation repository give it its layout:
- The definition box. The blue box and its DEFINITIE n: label come from MIM 1.2’s stylesheet. Copy
css/dfn-box.cssfrom the MIM repository. - The property lists. Each list of properties is a
<dl class="kenmerken">. Save the rules below ascss/kenmerken.cssto put each label in a column beside its value. On a narrow screen each label sits above its value.
dl.kenmerken { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.15rem;}
dl.kenmerken dt { color: #4d4d4d; font-weight: normal;}
dl.kenmerken dd { margin: 0;}
@media (max-width: 40em) { dl.kenmerken { grid-template-columns: minmax(0, 1fr); }
dl.kenmerken dd { margin-bottom: 0.4rem; }}Then add both to the <head> of your index.html:
<head> <link rel="stylesheet" href="./css/dfn-box.css" /> <link rel="stylesheet" href="./css/kenmerken.css" /></head>Without them the definitions still link, but the boxes render as plain text and each value sits indented below its label. Include the begrippenkader in your document like any other generated file:
<section data-include-format="markdown" data-include="data/model/index.md"></section>Getting the same bundle from the command line
Section titled “Getting the same bundle from the command line”Below the form, Command-line access shows the exact command that produces the bundle you have configured, ready to copy. That is useful when the output belongs in a repository rather than your downloads folder: the command writes the same content into a local folder and can be re-run whenever the model changes.
See the CLI reference for installing and signing in. To add prose of your own under an element of a pulled bundle, and keep it through every pull, see Add notes to a generated document. To add interactive diagrams and reading features such as find and hover cards to the document, see Add reading features to a generated document.
If this goes wrong
Section titled “If this goes wrong”- The page says No content bundles for this model. Content bundles are generated from a documentation template, and this model’s standard does not provide one. See Supported standards for which standards do.
- The bundle downloads without some diagrams. The page reports how many diagrams could not be rendered. Select Download .zip again to render the diagrams once more; the text in the bundle is complete either way.
- The page reports SVG or PNG missing for some diagrams. For example: Bundle downloaded; SVG or PNG missing for 2 diagrams. Those diagrams are in the bundle with only one of their two files. Where the SVG is the missing one, the figure shows the PNG, without links (see Diagrams in the bundle). Select Download .zip again to render the diagrams once more.
- A diagram is missing and the page reported no render failures. Then it is held back: its Published setting is off, and a held-back diagram is left out without a message. Open it in the Model editor and select Published under Publication in the Diagram settings tab to include it. See Publishing a diagram.
- The Local diagrams list is disabled and reads The download needs Include diagrams. Local diagrams are rendered diagrams, so the download includes them only with the others. Select Include diagrams. The command under Command-line access keeps the choice either way.
- A link in a definition or explanation shows as text. The generated document links only to web and mail
addresses: a Markdown link whose address starts with
http://,https://ormailto:, and a begrip or locatie that is anhttporhttpsaddress. Any other address is printed as you typed it, without a link. So is a begrip or locatie whose address holds a character reference such as&or&, or a character a web address is not written in, such as a space, a quote, a bracket or a backtick. An image written in Markdown shows as a link to it, and a fenced code block and a link by reference ([text][ref]) show as typed. - The download fails. The page reports the error and the button changes to Try again. If it keeps failing, clear Include diagrams to check whether the text alone succeeds, which narrows the problem down to the diagram render.
Related pages
Section titled “Related pages”- CLI reference: pull the same bundle into a local folder.
- Add notes to a generated document: your own prose under a pulled element.
- Add reading features to a generated document: interactive diagrams, find, hover cards and more in the published document.
- Supported standards: which standards provide templates.
- Compose a diagram: the diagrams that end up in the bundle.