File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ DOTTY_NONBOOTSTRAPPED_VERSION=$(eval $DOTTY_NONBOOTSTRAPPED_VERSION_COMMAND | ta
16
16
DOTTY_BOOTSTRAPPED_VERSION_COMMAND=" $SBT \" eval println(Build.dottyVersion)\" "
17
17
DOTTY_BOOTSTRAPPED_VERSION=$( eval $DOTTY_BOOTSTRAPPED_VERSION_COMMAND | tail -n 2 | head -n 1)
18
18
19
+ GITHUB_REPOSITORY=" lampepfl/dotty"
20
+ GITHUB_SHA=" 3.0.0"
21
+
19
22
" $SBT " " scaladoc/generateTestcasesDocumentation" > " $tmp " 2>&1 || echo " generated testcases project with sbt"
20
23
dist/target/pack/bin/scaladoc \
21
24
-d " $OUT1 " \
@@ -31,6 +34,8 @@ dist/target/pack/bin/scaladoc \
31
34
-Ygenerate-inkuire \
32
35
" -skip-by-id:scala.runtime.stdLibPatches" \
33
36
" -skip-by-id:scala.runtime.MatchCase" \
37
+ " -snippet-compiler:scaladoc-testcases/docs=compile" \
38
+ -siteroot scaladoc-testcases/docs \
34
39
-project-footer " Copyright (c) 2002-2021, LAMP/EPFL" \
35
40
-author -groups -revision master -project-version " ${DOTTY_BOOTSTRAPPED_VERSION} " \
36
41
out/bootstrap/scaladoc-testcases/scala-" ${DOTTY_NONBOOTSTRAPPED_VERSION} " /classes > " $tmp " 2>&1 || echo " generated testcases project with scripts"
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ object SnippetRenderer:
65
65
if elem.content.startsWith(currPrefix) then currPrefix else elem.content.takeWhile(_ == ' ' )
66
66
}
67
67
snippetLines.map { line =>
68
- if line.classes.contains(" hideable" ) then line
68
+ if line.classes.contains(" hideable" ) || maxCommonIndent.size == 0 then line
69
69
else line.copy(content = span(cls := " hideable" )(maxCommonIndent).toString + line.content.stripPrefix(maxCommonIndent))
70
70
}
71
71
}.getOrElse(snippetLines)
You can’t perform that action at this time.
0 commit comments