Skip to content

Commit 9e43bc2

Browse files
authored
docs: Change API docs template to jsdoc-clean-theme (#8519)
1 parent 177891e commit 9e43bc2

17 files changed

+393
-79
lines changed

jsdoc-conf.json

+22-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{
22
"plugins": ["node_modules/jsdoc-babel", "plugins/markdown"],
33
"babel": {
4-
"plugins": ["@babel/plugin-transform-flow-strip-types"]
4+
"plugins": ["@babel/plugin-transform-flow-strip-types"]
55
},
66
"source": {
7-
"include": ["./README.md", "./src/cloud-code", "./src/Options/docs.js", "./src/ParseServer.js", "./src/Adapters"],
7+
"include": [
8+
"README.md",
9+
"./src/cloud-code",
10+
"./src/Options/docs.js",
11+
"./src/ParseServer.js",
12+
"./src/Adapters"
13+
],
814
"excludePattern": "(^|\\/|\\\\)_"
915
},
1016
"templates": {
@@ -17,7 +23,18 @@
1723
"monospaceLinks": false
1824
},
1925
"opts": {
20-
"template": "node_modules/@parse/minami",
21-
"recurse": true
26+
"encoding": "utf8",
27+
"readme": "./README.md",
28+
"recurse": true,
29+
"template": "./node_modules/clean-jsdoc-theme",
30+
"theme_opts": {
31+
"default_theme": "dark",
32+
"title": "<img src='../.github/parse-server-logo.png' class='logo'/>",
33+
"create_style": "header, .sidebar-section-title, .sidebar-title { color: #139cee !important } .logo { margin-left : 40px; margin-right: 40px }"
34+
}
35+
},
36+
"markdown": {
37+
"hardwrap": false,
38+
"idInHeadings": true
2239
}
23-
}
40+
}

0 commit comments

Comments
 (0)