1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #18256 from timvandermeij/jsdoc-reproducible

Implement reproducibility for the JSDoc builds
This commit is contained in:
Tim van der Meij 2024-06-16 16:08:56 +02:00 committed by GitHub
commit ee94391794
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 9 deletions

View file

@ -1526,18 +1526,10 @@ gulp.task("jsdoc", function (done) {
console.log();
console.log("### Generating documentation (JSDoc)");
const JSDOC_FILES = ["src/display/api.js"];
fs.rmSync(JSDOC_BUILD_DIR, { recursive: true, force: true });
fs.mkdirSync(JSDOC_BUILD_DIR, { recursive: true });
const command =
'"node_modules/.bin/jsdoc" -d ' +
JSDOC_BUILD_DIR +
" " +
JSDOC_FILES.join(" ");
exec(command, done);
exec('"node_modules/.bin/jsdoc" -c jsdoc.json', done);
});
gulp.task("types", function (done) {

13
jsdoc.json Normal file
View file

@ -0,0 +1,13 @@
{
"source": {
"include": ["src/display/api.js"]
},
"opts": {
"destination": "build/jsdoc/"
},
"templates": {
"default": {
"includeDate": false
}
}
}