Skip to content

Commit

Permalink
- Use typedoc to generate API document instead of jsdoc.
Browse files Browse the repository at this point in the history
- Add @typedef JSDoc annotaion. Fix mozilla#16705
  • Loading branch information
tamuratak committed Aug 6, 2023
1 parent a2728d0 commit 33e1777
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 201 deletions.
8 changes: 6 additions & 2 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1516,9 +1516,13 @@ gulp.task("jsdoc", function (done) {

rimraf(JSDOC_BUILD_DIR, function () {
mkdirp(JSDOC_BUILD_DIR).then(function () {
const args = [
"excludeProtected",
"excludePrivate",
`out ${JSDOC_BUILD_DIR}`
].join(" --");
const command =
'"node_modules/.bin/jsdoc" -d ' +
JSDOC_BUILD_DIR +
`"node_modules/.bin/typedoc" --${args}` +
" " +
JSDOC_FILES.join(" ");
exec(command, done);
Expand Down
Loading

0 comments on commit 33e1777

Please sign in to comment.