-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FilterLabels: off for unlabeled includes (#345)
* FilterLabels: off for unlabeled includes * Allow forcing `filterLabels` even for whole files
- Loading branch information
Showing
8 changed files
with
135 additions
and
10 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
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
2 changes: 0 additions & 2 deletions
2
...in/src/sbt-test/paradox/snippet-noindent-writer/src/main/paradox/code-samples/Hello.scala
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,9 +1,7 @@ | ||
// #hello_example | ||
object Hello extends App { | ||
def say(str: String): Unit = { | ||
println(str) | ||
} | ||
|
||
say("hello") | ||
} | ||
// #hello_example |
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
4 changes: 3 additions & 1 deletion
4
plugin/src/sbt-test/paradox/snippets/src/main/paradox/reference.md
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,3 +1,5 @@ | ||
@@ snip [whole file](../../test/resources/reference.conf) | ||
@@ snip [whole file](../../test/resources/reference.conf) { filterLabels=true } | ||
|
||
<!-- --> | ||
|
||
@@ snip [snip snippet](../../test/resources/reference.conf) { #snip } |
4 changes: 2 additions & 2 deletions
4
plugin/src/sbt-test/paradox/snippets/src/test/resources/reference.conf
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,11 +1,11 @@ | ||
# This should be included | ||
#and this as well | ||
#and-this-line-should-be-skipped | ||
#and-this-line-should-be-skipped-when-using-labels | ||
|
||
snippets { | ||
#snip | ||
# this snip is a snap | ||
#and-this-line-should-be-skipped | ||
#and-this-line-should-be-skipped-when-using-labels | ||
snip = "snap" | ||
#snip | ||
} |
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