Skip to content

Commit

Permalink
Merge pull request #26 from ulkajs/0.5.3
Browse files Browse the repository at this point in the history
0.5.3
  • Loading branch information
coderosh-zz authored Sep 25, 2020
2 parents 7629d52 + 376659d commit 51b7762
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.5.3

- ulka-parser -> 0.3.1
- await the content generate.

## v0.5.2

- globalInfo is exported from index file.
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"rehype-stringify": "^8.0.0",
"remark-parse": "^8.0.3",
"remark-rehype": "^7.0.0",
"ulka-parser": "^0.2.11-rc.3",
"ulka-parser": "^0.3.1",
"unified": "^9.2.0",
"unist-util-visit": "^2.0.3",
"ws": "^7.3.1"
Expand Down
2 changes: 1 addition & 1 deletion src/generate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default async function generate() {

for (let j = 0; j < mdDatas.length; j++) {
const data = mdDatas[j]
data.generate(reqData)
await data.generate(reqData)
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/source/ulka-source.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from "path"
import { writeFileSync } from "fs"
import { parse } from "ulka-parser"
import { compile } from "ulka-parser"

import { mkdir } from "../fs"
import globalInfo from "../globalInfo"
Expand Down Expand Up @@ -72,7 +72,7 @@ class UlkaSource extends Source<UlkaSourceContext> {
ulkaTemplate = pluginContext.ulkaTemplate
}

const html = await parse(ulkaTemplate, this.values, {
const html = await compile(ulkaTemplate, this.values, {
base: path.parse(this.context.fPath).dir,
logError: false
})
Expand Down

0 comments on commit 51b7762

Please sign in to comment.