diff --git a/plugin/src/sbt-test/paradox/snippets/expected/multiple.html b/plugin/src/sbt-test/paradox/snippets/expected/multiple.html index 4ab50547..717998d5 100644 --- a/plugin/src/sbt-test/paradox/snippets/expected/multiple.html +++ b/plugin/src/sbt-test/paradox/snippets/expected/multiple.html @@ -4,3 +4,15 @@
import scala.util.Try
 
 def parseInt(s: String): Option[Int] = Try(s.toInt).toOption
+
# HTTP Configuration
+http {
+  port=80
+  host=0.0.0.0
+}
+
+# Database Configuration
+db {
+  url=jdbc:mysql://mydb/mytable
+  user=dev
+  pass=secret
+}
diff --git a/plugin/src/sbt-test/paradox/snippets/src/main/paradox/multiple.md b/plugin/src/sbt-test/paradox/snippets/src/main/paradox/multiple.md index 4783b248..435cc512 100644 --- a/plugin/src/sbt-test/paradox/snippets/src/main/paradox/multiple.md +++ b/plugin/src/sbt-test/paradox/snippets/src/main/paradox/multiple.md @@ -1,3 +1,5 @@ @@ snip [multiple snippet](../../test/scala/Multiple.scala) { #multiple } -@@ snip [comma separated snippet](../../test/scala/Multiple.scala) { #parseint-imports #parseint-def } +@@ snip [multi-label snippet](../../test/scala/Multiple.scala) { #parseint-imports #parseint-def } + +@@ snip [multi-label conf snippet](../../test/scala/Multiple.scala) { #http-config #db-config type=conf } diff --git a/plugin/src/sbt-test/paradox/snippets/src/test/scala/Multiple.scala b/plugin/src/sbt-test/paradox/snippets/src/test/scala/Multiple.scala index f91c22e3..95cea788 100644 --- a/plugin/src/sbt-test/paradox/snippets/src/test/scala/Multiple.scala +++ b/plugin/src/sbt-test/paradox/snippets/src/test/scala/Multiple.scala @@ -23,4 +23,25 @@ object Multiple { def parseInt(s: String): Option[Int] = Try(s.toInt).toOption // #parseint-def + + val config = """ + #http-config + # HTTP Configuration + http { + port=80 + host=0.0.0.0 + } + + #http-config + http.port=${?HTTP_PORT} + + #db-config + # Database Configuration + db { + url=jdbc:mysql://mydb/mytable + user=dev + pass=secret + } + #db-config + """ }