Skip to content

Commit 271d506

Browse files
committed
Refactor: Add documentation for the Scastie configuration
1 parent 86fe255 commit 271d506

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_overviews/scala3-scaladoc/settings.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,14 @@ Which means:
172172
- all snippets in files under directory `my/path/f` should fail during compilation
173173
- all other snippets should compile successfully
174174

175+
#### -scastie-configuration
176+
177+
Define the additional sbt configuration for your Scastie snippets. For example, when you import external libraries into your snippets, you need to add the related dependencies.
178+
179+
```
180+
"-scastie-configuration", """libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.12.0""""
181+
```
182+
175183
##### -Ysnippet-compiler-debug
176184

177185
Setting this option makes snippet compiler print the snippet as it is compiled (after wrapping).

0 commit comments

Comments
 (0)