Skip to content

Commit

Permalink
Bump versions + webpack improvements (#1075)
Browse files Browse the repository at this point in the history
* Bump dependencies

* Only build web version when using webpack serve

* Format webpack.config.js

* Remove comments from .min.* files

* Use async functions for jsdoc2md

* Upgrade `@types/node` version

* Bump onnxruntime-web
  • Loading branch information
xenova authored Dec 7, 2024
1 parent df7a3d8 commit 8f61bf3
Show file tree
Hide file tree
Showing 5 changed files with 1,224 additions and 1,273 deletions.
4 changes: 2 additions & 2 deletions docs/scripts/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const outputDir = path.join(root, '/docs/source/api/');


// get template data
const templateData = jsdoc2md.getTemplateDataSync({
const templateData = await jsdoc2md.getTemplateData({
files: inputFile,
configure: conf
})
Expand All @@ -37,7 +37,7 @@ const moduleNames = templateData.reduce(
for (const moduleName of moduleNames) {
const template = `{{#module name="${moduleName}"}}{{>docs}}{{/module}}`;
console.log(`rendering ${moduleName}, template: ${template}`);
let output = jsdoc2md.renderSync({
let output = await jsdoc2md.render({
'data': templateData,
'template': template,
'heading-depth': 1,
Expand Down
Loading

0 comments on commit 8f61bf3

Please sign in to comment.