generated from just-the-docs/just-the-docs-template
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
059d955
commit 70b516d
Showing
11 changed files
with
1,595 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Source for the website published at https://structurizr.github.io | ||
Source for the website published at https://docs.structurizr.com |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
layout: default | ||
title: Defaults | ||
parent: Structurizr DSL | ||
nav_order: 2 | ||
--- | ||
|
||
# Defaults | ||
|
||
The DSL is designed to be as compact as possible. | ||
When used in conjunction with [Structurizr Lite](https://structurizr.com/help/lite) | ||
or the [Structurizr CLI](https://github.com/structurizr/cli), | ||
the following DSL fragment will automatically: | ||
|
||
- Create the [implied relationship](docs/cookbook/implied-relationships) | ||
between the ```user``` and ```softwareSystem``` elements. | ||
- Create a default set of views (1 x System Landscape, 1 x System Context, 1 x Container - all with auto-layout enabled, see [ViewSet.createDefaultViews()](https://github.com/structurizr/java/blob/master/structurizr-core/src/com/structurizr/view/ViewSet.java)). | ||
- Add some default element styles from a theme. | ||
|
||
``` | ||
workspace { | ||
model { | ||
user = person "User" | ||
softwareSystem = softwareSystem "Software System" { | ||
webapp = container "Web Application" | ||
database = container "Database" | ||
} | ||
user -> webapp "Uses" | ||
webapp -> database "Reads from and writes to" | ||
} | ||
views { | ||
theme default | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
layout: default | ||
title: Expressions | ||
parent: Structurizr DSL | ||
nav_order: 5 | ||
--- | ||
|
||
# Expressions | ||
|
||
The Structurizr DSL supports a number of expressions for use when including or excluding elements/relationships on views. | ||
|
||
- `-><identifier|expression>`: the specified element(s) plus afferent couplings | ||
- `<identifier|expression>->`: the specified element(s) plus efferent couplings | ||
- `-><identifier|expression>->`: the specified element(s) plus afferent and efferent couplings | ||
- `element.type==<type>`: elements of the specified type (Person|SoftwareSystem|Container|Component|DeploymentNode|InfrastructureNode|SoftwareSystemInstance|ContainerInstance|Custom) | ||
- `element.parent==<identifier>`: elements with the specified parent | ||
- `element.tag==<tag>[,tag]`: all elements that have all of the specified tags | ||
- `element.tag!=<tag>[,tag]`: all elements that do not have all of the specified tags | ||
- `element==-><identifier>`: the specified element plus afferent couplings | ||
- `element==<identifier>->`: the specified element plus efferent couplings | ||
- `element==-><identifier>->`: the specified element plus afferent and efferent couplings | ||
|
||
- `*->*`: all relationships | ||
- `<identifier>->*`: all relationships with the specified source element | ||
- `*-><identifier>`: all relationships with the specified destination element | ||
- `relationship==*`: all relationships | ||
- `relationship==*->*`: all relationships | ||
- `relationship.tag==<tag>[,tag]`: all relationships that have all of the specified tags | ||
- `relationship.tag!=<tag>[,tag]`: all relationships that do not have all of the specified tags | ||
- `relationship.source==<identifier>`: all relationships with the specified source element | ||
- `relationship.destination==<identifier>`: all relationships with the specified destination element | ||
- `relationship==<identifier>->*`: all relationships with the specified source element | ||
- `relationship==*-><identifier>`: all relationships with the specified destination element | ||
- `relationship==<identifier>-><identifier>`: all relationships between the two specified elements | ||
|
||
Element and relationship expressions are not supported on dynamic views. |
Oops, something went wrong.