Skip to content

Commit

Permalink
feat(markdown)!: adjust renderer interface to match the json schema r…
Browse files Browse the repository at this point in the history
…enderer
  • Loading branch information
elyukai committed May 28, 2023
1 parent 62277d7 commit 179bdd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ generate({
outputs: [
{
targetDir: join(root, "schema"),
renderer: jsonSchema
renderer: jsonSchema({ spec: jsonSchemaSpec })
},
{
targetDir: join(root, "docs", "reference"),
renderer: markdown
renderer: markdown()
}
]
})
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ const astToMarkdown: AstTransformer = file => {
].join(EOL + EOL) + EOL
}

export const markdownRenderer: Renderer = Object.freeze({
export const markdownRenderer = (): Renderer => Object.freeze({
transformer: astToMarkdown,
fileExtension: ".md",
})

0 comments on commit 179bdd7

Please sign in to comment.