Skip to content

Commit

Permalink
fix: build docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Mar 24, 2024
1 parent 18f50bb commit 8817829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/workflow/build-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function generateMd(lang) {
}
: undefined;
md[category] += `### ${data.name} ${data.url || docs[category][namespace].url ? `<Site url="${data.url || docs[category][namespace].url}" size="sm" />` : ''}\n\n`;
md[category] += `<Route namespace="${namespace}" :data='${JSON.stringify(data).replaceAll(`'`, '&#39;')}' :test='${JSON.stringify(parsedTest)}' />\n\n`;
md[category] += `<Route namespace="${namespace}" :data='${JSON.stringify(data).replaceAll(`'`, '&#39;')}' :test='${JSON.stringify(parsedTest)?.replaceAll(`'`, '&#39;')}' />\n\n`;
if (data.description) {
md[category] += `${data.description}\n\n`;
}
Expand Down

0 comments on commit 8817829

Please sign in to comment.