hyperbook 0.53.4 → 0.53.6
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/index.js +4 -7
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -175325,13 +175325,10 @@ var getHeadings = (root5) => {
|
|
|
175325
175325
|
|
|
175326
175326
|
// src/rehypeTableOfContents.ts
|
|
175327
175327
|
var rehypeTableOfContents_default = (ctx) => () => {
|
|
175328
|
-
const showToc = ctx.navigation.current?.toc
|
|
175328
|
+
const showToc = (ctx.config.toc ?? true) && (ctx.navigation.current?.toc ?? true);
|
|
175329
175329
|
return (tree, file) => {
|
|
175330
175330
|
const headings = file.data.headings || [];
|
|
175331
175331
|
const originalChildren = tree.children;
|
|
175332
|
-
if (!showToc) {
|
|
175333
|
-
return;
|
|
175334
|
-
}
|
|
175335
175332
|
const tocSidebar = [
|
|
175336
175333
|
{
|
|
175337
175334
|
type: "element",
|
|
@@ -175439,7 +175436,7 @@ var rehypeTableOfContents_default = (ctx) => () => {
|
|
|
175439
175436
|
properties: {
|
|
175440
175437
|
class: "hyperbook-markdown"
|
|
175441
175438
|
},
|
|
175442
|
-
children: [...tocSidebar, ...originalChildren]
|
|
175439
|
+
children: [...showToc ? tocSidebar : [], ...originalChildren]
|
|
175443
175440
|
}
|
|
175444
175441
|
];
|
|
175445
175442
|
};
|
|
@@ -184380,7 +184377,7 @@ var remarkDirectivePagelist_default = (ctx) => () => {
|
|
|
184380
184377
|
|
|
184381
184378
|
// src/rehypeQrCode.ts
|
|
184382
184379
|
var rehypeQrCode_default = (ctx) => () => {
|
|
184383
|
-
const qrcode = ctx.config.qrcode
|
|
184380
|
+
const qrcode = ctx.config.qrcode && (ctx.navigation.current?.qrcode ?? true);
|
|
184384
184381
|
return (tree, file) => {
|
|
184385
184382
|
const originalChildren = tree.children;
|
|
184386
184383
|
if (!qrcode || !ctx.navigation.current?.href) {
|
|
@@ -187833,7 +187830,7 @@ pako/dist/pako.esm.mjs:
|
|
|
187833
187830
|
//# sourceMappingURL=index.js.map
|
|
187834
187831
|
|
|
187835
187832
|
;// CONCATENATED MODULE: ./package.json
|
|
187836
|
-
const package_namespaceObject = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.53.
|
|
187833
|
+
const package_namespaceObject = /*#__PURE__*/JSON.parse('{"name":"hyperbook","version":"0.53.6","author":"Mike Barkmin","homepage":"https://github.com/openpatch/hyperbook#readme","license":"MIT","bin":{"hyperbook":"./dist/index.js"},"files":["dist"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/openpatch/hyperbook.git","directory":"packages/hyperbook"},"bugs":{"url":"https://github.com/openpatch/hyperbook/issues"},"engines":{"node":">=12.22.0"},"scripts":{"version":"pnpm build","lint":"tsc --noEmit","dev":"ncc build ./index.ts -w -o dist/","build":"rimraf dist && ncc build ./index.ts -o ./dist/ --no-cache --no-source-map-register && node postbuild.mjs"},"devDependencies":{"@hyperbook/fs":"workspace:*","@hyperbook/markdown":"workspace:*","@hyperbook/types":"workspace:*","@pnpm/exportable-manifest":"1000.0.6","@types/archiver":"6.0.3","@types/async-retry":"1.4.9","@types/cross-spawn":"6.0.6","@types/lunr":"^2.3.7","@types/prompts":"2.4.9","@types/tar":"6.1.13","@types/ws":"^8.5.14","@vercel/ncc":"0.38.3","archiver":"7.0.1","async-retry":"1.3.3","chalk":"5.4.1","chokidar":"4.0.3","commander":"12.1.0","cpy":"11.1.0","cross-spawn":"7.0.6","domutils":"^3.2.2","extract-zip":"^2.0.1","got":"12.6.0","htmlparser2":"^10.0.0","lunr":"^2.3.9","lunr-languages":"^1.14.0","mime":"^4.0.6","prompts":"2.4.2","rimraf":"6.0.1","tar":"7.4.3","update-check":"1.5.4","ws":"^8.18.0"}}');
|
|
187837
187834
|
;// CONCATENATED MODULE: ./build.ts
|
|
187838
187835
|
|
|
187839
187836
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyperbook",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.6",
|
|
4
4
|
"author": "Mike Barkmin",
|
|
5
5
|
"homepage": "https://github.com/openpatch/hyperbook#readme",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"update-check": "1.5.4",
|
|
55
55
|
"ws": "^8.18.0",
|
|
56
56
|
"@hyperbook/fs": "0.18.3",
|
|
57
|
-
"@hyperbook/markdown": "0.29.
|
|
58
|
-
"@hyperbook/types": "0.15.
|
|
57
|
+
"@hyperbook/markdown": "0.29.4",
|
|
58
|
+
"@hyperbook/types": "0.15.2"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"version": "pnpm build",
|