Skip to content

Commit

Permalink
add export to transformFn and defaultToSectionSchema (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
raiindev authored Sep 25, 2023
2 parents ee24de7 + f66fce8 commit 2f414c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-docusaurus/src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function indexPath(outDir: string, version: string): string {
return resolve(outDir, INDEX_FILE.replace('@VERSION@', version))
}

function transformFn(node: NodeContent, context: PopulateFnContext): NodeContent {
export function transformFn(node: NodeContent, context: PopulateFnContext): NodeContent {
let raw

switch (node.tag) {
Expand Down Expand Up @@ -62,7 +62,7 @@ function transformFn(node: NodeContent, context: PopulateFnContext): NodeContent
return transformed
}

function defaultToSectionSchema(
export function defaultToSectionSchema(
node: DefaultSchemaElement,
pageRoute: string,
sectionTitle: string,
Expand Down

1 comment on commit 2f414c1

@vercel
Copy link

@vercel vercel bot commented on 2f414c1 Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.