forked from citation-js/citation-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jsdoc.js
41 lines (38 loc) · 987 Bytes
/
.jsdoc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import fs from "node:fs";
import path from "node:path";
import lerna from "./lerna.json";
const version = lerna.version.split(".", 2).join(".");
const packageDir = path.join(__dirname, "packages");
const packageSrc = fs.readdirSync(packageDir).map((_package) => path.join(packageDir, _package, "src"));
module.exports = {
plugins: ["plugins/markdown"],
markdown: {
idInHeadings: true,
},
tags: {
allowUnknownTags: true,
dictionaries: ["jsdoc", "closure"],
},
source: {
include: packageSrc,
exclude: ["packages/cli/src", "packages/core/src/plugin-common"],
includePattern: "\\.js(doc)?$",
},
opts: {
// template: '../jsdoc-template/default',
// template: '../jsdoc-template',
encoding: "utf8",
readme: "./README.md",
recurse: true,
destination: "./jsdoc/" + version + "/",
tutorials: "./packages/core/docs/",
},
templates: {
default: {
layoutFile: ".jsdoc.tmpl",
includeDate: true,
},
cleverLinks: false,
monospaceLinks: false,
},
};