clean-jsdoc-theme 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/publish.d.mts +6 -0
- package/dist/publish.d.ts +6 -0
- package/dist/publish.js +8 -3
- package/dist/publish.js.map +1 -1
- package/dist/publish.mjs +8 -3
- package/dist/publish.mjs.map +1 -1
- package/package.json +6 -6
package/dist/publish.d.mts
CHANGED
|
@@ -113,6 +113,12 @@ interface JSDocOpts {
|
|
|
113
113
|
* Defaults to enabled.
|
|
114
114
|
*/
|
|
115
115
|
pageNav?: unknown;
|
|
116
|
+
/**
|
|
117
|
+
* Scrollbar presentation (`jsdoc.json` `"opts": { "scrollbar": "native" }`).
|
|
118
|
+
* `"styled"` (default) = overlay bar that hides at rest; `"visible"` = themed
|
|
119
|
+
* bar always shown; `"native"` = the browser's own scrollbar. See #281.
|
|
120
|
+
*/
|
|
121
|
+
scrollbar?: unknown;
|
|
116
122
|
/**
|
|
117
123
|
* Code-playground config (`jsdoc.json` `"opts": { "playground": … }`). Either
|
|
118
124
|
* a boolean (`true` turns it on with defaults; absent/`false` = off) or an
|
package/dist/publish.d.ts
CHANGED
|
@@ -113,6 +113,12 @@ interface JSDocOpts {
|
|
|
113
113
|
* Defaults to enabled.
|
|
114
114
|
*/
|
|
115
115
|
pageNav?: unknown;
|
|
116
|
+
/**
|
|
117
|
+
* Scrollbar presentation (`jsdoc.json` `"opts": { "scrollbar": "native" }`).
|
|
118
|
+
* `"styled"` (default) = overlay bar that hides at rest; `"visible"` = themed
|
|
119
|
+
* bar always shown; `"native"` = the browser's own scrollbar. See #281.
|
|
120
|
+
*/
|
|
121
|
+
scrollbar?: unknown;
|
|
116
122
|
/**
|
|
117
123
|
* Code-playground config (`jsdoc.json` `"opts": { "playground": … }`). Either
|
|
118
124
|
* a boolean (`true` turns it on with defaults; absent/`false` = off) or an
|
package/dist/publish.js
CHANGED
|
@@ -154,7 +154,8 @@ var loadUtils = () => loadDep("@clean-jsdoc-theme/utils", [
|
|
|
154
154
|
"toExtractManifest",
|
|
155
155
|
"normalizeCollapsibleSidebarSections",
|
|
156
156
|
"unmatchedCollapsibleSections",
|
|
157
|
-
"topLevelSectionLabels"
|
|
157
|
+
"topLevelSectionLabels",
|
|
158
|
+
"normalizeScrollbar"
|
|
158
159
|
]);
|
|
159
160
|
var loadOra = async () => {
|
|
160
161
|
try {
|
|
@@ -1103,7 +1104,8 @@ async function publish(data, opts, tutorials) {
|
|
|
1103
1104
|
toExtractManifest,
|
|
1104
1105
|
normalizeCollapsibleSidebarSections,
|
|
1105
1106
|
unmatchedCollapsibleSections,
|
|
1106
|
-
topLevelSectionLabels
|
|
1107
|
+
topLevelSectionLabels,
|
|
1108
|
+
normalizeScrollbar
|
|
1107
1109
|
}
|
|
1108
1110
|
// Loaded sequentially (not Promise.all) so the spinner can step its label
|
|
1109
1111
|
// through each module — the evaluation of these large ESM bundles is the
|
|
@@ -1180,6 +1182,8 @@ async function publish(data, opts, tutorials) {
|
|
|
1180
1182
|
const clubSidebarItems = opts.clubSidebarItems === true;
|
|
1181
1183
|
const { value: collapsibleSidebarSections, warnings: collapsibleWarnings } = normalizeCollapsibleSidebarSections(opts.collapsibleSidebarSections);
|
|
1182
1184
|
collapsibleWarnings.forEach((w) => console.warn(`clean-jsdoc-theme: ${w}`));
|
|
1185
|
+
const { value: scrollbar, warnings: scrollbarWarnings } = normalizeScrollbar(opts.scrollbar);
|
|
1186
|
+
scrollbarWarnings.forEach((w) => console.warn(`clean-jsdoc-theme: ${w}`));
|
|
1183
1187
|
const playground = normalizePlayground(opts.playground);
|
|
1184
1188
|
const siteOptions = {
|
|
1185
1189
|
...pkg ? { pkg } : {},
|
|
@@ -1252,7 +1256,8 @@ async function publish(data, opts, tutorials) {
|
|
|
1252
1256
|
...customAssets.theme,
|
|
1253
1257
|
...footer ? { footer } : {},
|
|
1254
1258
|
...favicon ? { favicon: favicon.href } : {},
|
|
1255
|
-
...meta ? { meta } : {}
|
|
1259
|
+
...meta ? { meta } : {},
|
|
1260
|
+
...scrollbar ? { scrollbar } : {}
|
|
1256
1261
|
},
|
|
1257
1262
|
destination: absoluteDestination,
|
|
1258
1263
|
islandCacheDir,
|