Skip to content
Permalink
Browse files

fixes

  • Loading branch information...
lihaoyi committed Aug 2, 2019
1 parent c6de1b5 commit a8bca6cab7b6d7f4075c809399d7139ea8ac032e
Showing with 7 additions and 6 deletions.
  1. +5 −4 build.sc
  2. +2 −2 post/40 - How to create Build Pipelines in Scala.md
@@ -71,14 +71,15 @@ class PostModule(number: Int) extends Module{
ast.getChildren.clear()
headerNodes.foreach(ast.getChildren.add)

val serializer = new markdown.Serializer()
val rawHtmlSnippet = serializer.toHtml(ast)
val previewSerializer = new markdown.Serializer()
val rawHtmlSnippet = previewSerializer.toHtml(ast)
ast.getChildren.clear()
bodyNodes.foreach(ast.getChildren.add)

val rawHtmlContent = rawHtmlSnippet + new markdown.Serializer().toHtml(ast) + pages.postlude
val bodySerializer = new markdown.Serializer()
val rawHtmlContent = rawHtmlSnippet + bodySerializer.toHtml(ast) + pages.postlude

pages.PostInfo(name, serializer.headers, rawHtmlContent, rawHtmlSnippet, updates())
pages.PostInfo(name, bodySerializer.headers, rawHtmlContent, rawHtmlSnippet, updates())
}

def content = T{
@@ -8,7 +8,7 @@ build pipeline gives you over a naive build script.

-------------------------------------------------------------------------------

## build.sc
## Scala Scripts

As a worked example for this blog post, we will be starting with the simple
single-file static site generator discussed here:
@@ -88,7 +88,7 @@ open these files in the browser and interact with them:

![Script.png](build-pipelines/Script.png)

## Problems with build.sc
## Problems with Scala Scripts

While the above `build.sc` script works fine in small cases, there is one big
limitation: the entire script runs every time. Even if you only change one blog

0 comments on commit a8bca6c

Please sign in to comment.
You can’t perform that action at this time.