Skip to content

Commit 237b4a5

Browse files
committed
Review changes
1 parent 18da7b1 commit 237b4a5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

scaladoc/src/dotty/tools/scaladoc/renderers/Resources.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ trait Resources(using ctx: DocContext) extends Locations, Writer:
162162
Resource.Text(searchDataPath, s"pages = ${jsonList(entries)};")
163163

164164
def scastieConfiguration() =
165-
Resource.Text(scastieConfigurationPath, s"scastieConfiguration = \"${
165+
Resource.Text(scastieConfigurationPath, s"""scastieConfiguration = "${
166166
ctx.args.scastieConfiguration.replace('"'.toString, """\"""")
167-
}\"")
167+
}"""")
168168

169169

170170
def allResources(pages: Seq[Page]): Seq[Resource] = earlyMemberResources ++ memberResources ++ Seq(

scaladoc/src/dotty/tools/scaladoc/site/templates.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ case class TemplateFile(
106106
// Snippet compiler currently supports markdown only
107107
val parser: Parser = Parser.builder(defaultMarkdownOptions).build()
108108
val parsedMd = parser.parse(rendered)
109-
val processed = FlexmarkSnippetProcessor.processSnippets(parsedMd, snippetCheckingFunc, false)(using ssctx.outerCtx)
109+
val processed = FlexmarkSnippetProcessor.processSnippets(parsedMd, snippetCheckingFunc, withContext = false)(using ssctx.outerCtx)
110110
HtmlRenderer.builder(defaultMarkdownOptions).build().render(processed)
111111

112112
layoutTemplate match

scaladoc/src/dotty/tools/scaladoc/tasty/comments/Comments.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ class MarkdownCommentParser(repr: Repr)(using dctx: DocContext)
194194
.mapValues(stringToMarkup).to(SortedMap)
195195

196196
def processSnippets(root: mdu.Node): mdu.Node =
197-
FlexmarkSnippetProcessor.processSnippets(root, snippetCheckingFunc(owner), true)
197+
FlexmarkSnippetProcessor.processSnippets(root, snippetCheckingFunc(owner), withContext = true)
198198
}
199199

200200
class WikiCommentParser(repr: Repr)(using DocContext)

0 commit comments

Comments
 (0)