Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Fixes #321.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbrowndotje committed Aug 21, 2023
1 parent 4a08e44 commit b84b048
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/cookbook/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Here are some useful scripts.
```
!script groovy {
workspace.views.createDefaultViews()
workspace.views.views.each { it.disableAutomaticLayout() }
workspace.views.views.findAll { it instanceof com.structurizr.view.ModelView }.each { it.disableAutomaticLayout() }
}
```

Expand Down
8 changes: 4 additions & 4 deletions docs/language-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,12 @@ The following variables are available from scripts:

#### Inline scripts

To use an inline script, use the `!script` keyword followed by the language you'd like to use (`groovy`, `kotlin`, or `javascript`). For example, the following Kotlin script will create the default set of views, without automatic layout enabled.
To use an inline script, use the `!script` keyword followed by the language you'd like to use (`groovy`, `kotlin`, `ruby`, or `javascript`). For example, the following Groovy script will create the default set of views, without automatic layout enabled.

```
!script kotlin {
workspace.views.createDefaultViews()
workspace.views.views.forEach { it.disableAutomaticLayout() }
!script groovy {
workspace.views.createDefaultViews()
workspace.views.views.findAll { it instanceof com.structurizr.view.ModelView }.each { it.disableAutomaticLayout() }
}
```

Expand Down

0 comments on commit b84b048

Please sign in to comment.