diff --git a/.jsdocrc.js b/.jsdocrc.js index db30ac3d..ecf9e931 100644 --- a/.jsdocrc.js +++ b/.jsdocrc.js @@ -1,6 +1,16 @@ +const pkg = require('./package.json'); + module.exports = { plugins: ['plugins/markdown'], markdown: { idInHeadings: true + }, + templates: { + default: { + outputSourceFiles: false, + externalSourceLinks: { + urlPrefix: `${pkg.repository.url}/blob/v${pkg.version}/src/` + } + } } }; diff --git a/package-lock.json b/package-lock.json index f57c0f81..5c9fd873 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2164,9 +2164,8 @@ } }, "jsdoc": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.4.tgz", - "integrity": "sha512-3G9d37VHv7MFdheviDCjUfQoIjdv4TC5zTTf5G9VODLtOnVS6La1eoYBDlbWfsRT3/Xo+j2MIqki2EV12BZfwA==", + "version": "github:openpgpjs/jsdoc#0f1816eb4553856647b4ca9561b9307b11ec4f9e", + "from": "github:openpgpjs/jsdoc#0f1816eb4553856647b4ca9561b9307b11ec4f9e", "dev": true, "requires": { "@babel/parser": "^7.9.4", diff --git a/package.json b/package.json index 467ae794..78809902 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "eslint-plugin-import": "^2.8.0", "hash.js": "^1.1.3", "http-server": "^0.12.3", - "jsdoc": "^3.6.4", + "jsdoc": "github:openpgpjs/jsdoc#0f1816eb4553856647b4ca9561b9307b11ec4f9e", "mocha": "^5.0.0", "nyc": "^14.1.1", "pako": "^1.0.6",