typerighter 0.57.2 → 0.57.3
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/{app-D-dbbyVD.js → app-C-C48izb.js} +792 -780
- package/dist/{cli-Dpa3j5Sm.js → cli-C2MIZ1lV.js} +10 -8
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +1 -1
- package/dist/client.js +1 -1
- package/dist/{context-CPrHBM3S.js → context-CLKZYp4U.js} +31 -28
- package/dist/index.js +2 -2
- package/dist/{init-DPhEzp34.js → init-BduI0qK5.js} +2 -2
- package/dist/node/build/index.d.ts.map +1 -1
- package/dist/node/build/seo/llms.d.ts +3 -0
- package/dist/node/build/seo/llms.d.ts.map +1 -0
- package/dist/node/build/seo/page.d.ts.map +1 -1
- package/dist/node/cli/index.d.ts.map +1 -1
- package/dist/node/context.d.ts +3 -1
- package/dist/node/context.d.ts.map +1 -1
- package/dist/{page-BbSO0VG8.js → page-ChF2owpa.js} +45 -45
- package/dist/prerenderWorker.js +1 -1
- package/dist/typerighter.css +1 -1
- package/dist/{vite-D3_cd2_2.js → vite-Bd6MPoKO.js} +329 -331
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as e, t } from "./vite-
|
|
2
|
-
import { n } from "./context-
|
|
1
|
+
import { s as e, t } from "./vite-Bd6MPoKO.js";
|
|
2
|
+
import { n } from "./context-CLKZYp4U.js";
|
|
3
3
|
import r from "node:path";
|
|
4
4
|
import i from "picocolors";
|
|
5
5
|
import { createServer as a } from "vite";
|
|
@@ -370,7 +370,7 @@ function A() {
|
|
|
370
370
|
}), process.on("unhandledRejection", (e) => {
|
|
371
371
|
j("runtime", e instanceof Error ? e : Error(String(e)));
|
|
372
372
|
}), i.command("[root]", "Start dev server").alias("dev").option("--port <port>", "Port to listen on").option("--host", "Expose to network").option("--fresh", "Start fresh, ignore cache from previous session").option("--verbose", "Print version and build info").action(async (e, n) => {
|
|
373
|
-
n.verbose && console.log(`${k} cli v0.57.
|
|
373
|
+
n.verbose && console.log(`${k} cli v0.57.3 (built 11/9/2026, 5:32:03 PM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
|
|
374
374
|
let r = await a({
|
|
375
375
|
root: N(e),
|
|
376
376
|
configFile: !1,
|
|
@@ -383,7 +383,8 @@ function A() {
|
|
|
383
383
|
});
|
|
384
384
|
await r.listen(), r.printUrls();
|
|
385
385
|
}), i.command("build [root]", "Build for production").option("--outDir <dir>", "Output directory", { default: "dist" }).option("--base <path>", "Base public path").option("--verbose", "Print version and build info").action(async (t, r) => {
|
|
386
|
-
|
|
386
|
+
r.verbose && (process.env.TYPEDOWN_VERBOSE = "1");
|
|
387
|
+
let i = n(N(t), { verbose: r.verbose });
|
|
387
388
|
r.verbose && await M(i);
|
|
388
389
|
try {
|
|
389
390
|
await e(i, {
|
|
@@ -395,7 +396,7 @@ function A() {
|
|
|
395
396
|
}
|
|
396
397
|
process.exit(0);
|
|
397
398
|
}), i.command("init [root]", "Scaffold a new project").option("--name <name>", "Project name").option("--title <title>", "Site title").option("--description <description>", "Site description").option("--yes", "Skip confirmation for existing projects").action(async (e, t) => {
|
|
398
|
-
let { initialize: n } = await import("./init-
|
|
399
|
+
let { initialize: n } = await import("./init-BduI0qK5.js");
|
|
399
400
|
await n(N(e), t);
|
|
400
401
|
}), i.command("preview [root]", "Preview production build").option("--port <port>", "Port to listen on").action(async (e, t) => {
|
|
401
402
|
let r = N(e), i = n(r);
|
|
@@ -410,7 +411,8 @@ function A() {
|
|
|
410
411
|
i.dispose();
|
|
411
412
|
}
|
|
412
413
|
}), i.command("check [root]", "Check vault for errors").option("--fix", "Auto-fix formatting issues").option("--verbose", "Print version and build info").action(async (e, t) => {
|
|
413
|
-
|
|
414
|
+
t.verbose && (process.env.TYPEDOWN_VERBOSE = "1");
|
|
415
|
+
let i = n(N(e), { verbose: t.verbose });
|
|
414
416
|
t.verbose && await M(i);
|
|
415
417
|
let { logger: a } = i;
|
|
416
418
|
try {
|
|
@@ -433,7 +435,7 @@ function A() {
|
|
|
433
435
|
} finally {
|
|
434
436
|
i.dispose();
|
|
435
437
|
}
|
|
436
|
-
}), i.help(), i.version("0.57.
|
|
438
|
+
}), i.help(), i.version("0.57.3"), i.parse();
|
|
437
439
|
}
|
|
438
440
|
function j(e, t) {
|
|
439
441
|
let n = t instanceof Error ? t.message : String(t);
|
|
@@ -441,7 +443,7 @@ function j(e, t) {
|
|
|
441
443
|
}
|
|
442
444
|
async function M(e) {
|
|
443
445
|
let t = await (await e.getTdContext()).rpc.getVersion();
|
|
444
|
-
console.log(`${k} cli v0.57.
|
|
446
|
+
console.log(`${k} cli v0.57.3 (built 11/9/2026, 5:32:03 PM)`), console.log(`${k} rpc v${t}`), console.log("");
|
|
445
447
|
}
|
|
446
448
|
function N(e) {
|
|
447
449
|
return r.resolve(e ?? process.cwd());
|
package/dist/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as cli } from "./cli-
|
|
1
|
+
export { t as cli } from "./cli-C2MIZ1lV.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as e, l as t, n, o as r, r as i, s as a, t as o } from "../useSidebarConfig-0kMemgUS.js";
|
|
2
|
-
import { S as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, l as g, m as _, o as v, p as y, s as b, u as x, v as S, x as C, y as w } from "../app-
|
|
2
|
+
import { S as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, l as g, m as _, o as v, p as y, s as b, u as x, v as S, x as C, y as w } from "../app-C-C48izb.js";
|
|
3
3
|
export { o as SIDEBAR_COLLAPSED_WIDTH, n as SIDEBAR_DEFAULT_WIDTH, i as SIDEBAR_MAX_WIDTH, e as SIDEBAR_MIN_WIDTH, s as TdBrandIcon, w as TdContentNav, b as TdDirectoryIndex, S as TdFooter, v as TdGlossaryIndex, u as TdKbdShortcut, C as TdKeyName, g as TdLayout, d as TdNotFound, _ as TdPreviousNext, p as TdRail, f as TdThemeToggle, y as TdToc, l as default, h as isTypingTarget, a as useClientPreferences, x as useCopyCode, m as useGlobalHotkey, c as useLocalHotkeys, r as useSidebarConfig, t as useTheme };
|
package/dist/client.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { l as e } from "./useSidebarConfig-0kMemgUS.js";
|
|
2
|
-
import { C as t, T as n, i as r, n as i, r as a, t as o, w as s } from "./app-
|
|
2
|
+
import { C as t, T as n, i as r, n as i, r as a, t as o, w as s } from "./app-C-C48izb.js";
|
|
3
3
|
export { t as Content, o as createTypedownApp, s as useRoute, n as useRouter, i as useSiteConfig, a as useSiteData, r as useTdContent, e as useTheme };
|
|
@@ -118,50 +118,53 @@ async function f(e, t = 5) {
|
|
|
118
118
|
}
|
|
119
119
|
// src/node/context.ts
|
|
120
120
|
var p = ["typedown.yaml", "typedown.yml"];
|
|
121
|
-
function m(e) {
|
|
122
|
-
let
|
|
123
|
-
function
|
|
121
|
+
function m(e, { verbose: t = !1 } = {}) {
|
|
122
|
+
let r = new c(_(e));
|
|
123
|
+
function a() {
|
|
124
124
|
let e = n("warn");
|
|
125
125
|
return {
|
|
126
126
|
...e,
|
|
127
127
|
info(e) {
|
|
128
|
-
|
|
128
|
+
r.writeToFile("VITE", e);
|
|
129
129
|
},
|
|
130
|
-
warn(
|
|
131
|
-
e.warn(
|
|
130
|
+
warn(t) {
|
|
131
|
+
e.warn(t), r.writeToFile("VITE:WARN", t);
|
|
132
132
|
},
|
|
133
|
-
error(
|
|
134
|
-
e.error(
|
|
133
|
+
error(t) {
|
|
134
|
+
e.error(t), r.writeToFile("VITE:ERROR", t);
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
let
|
|
139
|
-
function f() {
|
|
140
|
-
t.log(""), h(), process.exit(0);
|
|
141
|
-
}
|
|
138
|
+
let s, l, d, f = !1;
|
|
142
139
|
function p() {
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
140
|
+
r.log(""), g(), process.exit(0);
|
|
141
|
+
}
|
|
142
|
+
function m() {
|
|
143
|
+
g();
|
|
144
|
+
}
|
|
145
|
+
async function h() {
|
|
146
|
+
if (s) return s;
|
|
147
|
+
process.on("SIGINT", p), process.on("SIGTERM", p), l = new i({
|
|
148
|
+
root: e,
|
|
149
|
+
verbose: t
|
|
150
|
+
}), await new Promise((e, t) => {
|
|
151
|
+
l?.once("error", t), l?.listen(() => {
|
|
152
|
+
l?.removeListener("error", t), e();
|
|
150
153
|
});
|
|
151
154
|
});
|
|
152
|
-
let
|
|
153
|
-
if (
|
|
154
|
-
return
|
|
155
|
+
let n = l.host, r = l.port;
|
|
156
|
+
if (n === void 0 || r === void 0) throw Error("RPC server started but host/port not available");
|
|
157
|
+
return d = await o.connectTcp(n, r), s = new u(d), l.unref(), process.on("exit", m), s;
|
|
155
158
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
159
|
+
function g() {
|
|
160
|
+
f || (f = !0, process.removeListener("exit", m), process.removeListener("SIGINT", p), process.removeListener("SIGTERM", p), d?.dispose(), l?.close(), s = void 0, l = void 0, d = void 0);
|
|
158
161
|
}
|
|
159
162
|
return {
|
|
160
163
|
root: e,
|
|
161
|
-
logger:
|
|
162
|
-
getTdContext:
|
|
163
|
-
createViteLogger:
|
|
164
|
-
dispose:
|
|
164
|
+
logger: r,
|
|
165
|
+
getTdContext: h,
|
|
166
|
+
createViteLogger: a,
|
|
167
|
+
dispose: g
|
|
165
168
|
};
|
|
166
169
|
}
|
|
167
170
|
function h(t) {
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./vite-
|
|
2
|
-
import { t as s } from "./cli-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./vite-Bd6MPoKO.js";
|
|
2
|
+
import { t as s } from "./cli-C2MIZ1lV.js";
|
|
3
3
|
export { n as PAGES_ID, i as PAGE_DATA_EVENT, t as SEARCH_INDEX_ID, e as SITE_DATA_ID, r as THEME_ID, a as buildSite, s as cli, o as typedown };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-QGRDbDUS.js";
|
|
2
|
-
import { t } from "./context-
|
|
2
|
+
import { t } from "./context-CLKZYp4U.js";
|
|
3
3
|
import { a as n, i as r, n as i, r as a, t as o } from "./brand-BSCRFcrY.js";
|
|
4
4
|
import s from "node:path";
|
|
5
5
|
import c from "node:fs/promises";
|
|
@@ -769,7 +769,7 @@ function Ze(e) {
|
|
|
769
769
|
check: "typerighter check"
|
|
770
770
|
},
|
|
771
771
|
devDependencies: {
|
|
772
|
-
typerighter: "^0.57.
|
|
772
|
+
typerighter: "^0.57.3",
|
|
773
773
|
typescript: "^5.0.0"
|
|
774
774
|
}
|
|
775
775
|
}, void 0, 2) + "\n";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,MAAM,CAAC;AAwBhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAC7B,GAAG,EAAE,UAAU,EACf,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,MAAM,CAAC;AAwBhD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAG7C,MAAM,WAAW,YAAY;IAC3B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,UAAU,CAAC,EAAE,YAAY,CAAC;CAC3B;AAGD,wBAAsB,SAAS,CAC7B,GAAG,EAAE,UAAU,EACf,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAqQf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"llms.d.ts","sourceRoot":"","sources":["../../../../src/node/build/seo/llms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,yBAAyB,CAAC;AAMjC,wBAAgB,YAAY,CAC1B,KAAK,EAAE,aAAa,EAAE,EACtB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,MAAM,GAAG,SAAS,GAClC,MAAM,CA6CR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/node/build/seo/page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAAE,QAAQ,EACjB,MAAM,oBAAoB,CAAC;AAU5B,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAGD,wBAAgB,YAAY,CAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/node/build/seo/page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAAE,QAAQ,EACjB,MAAM,oBAAoB,CAAC;AAU5B,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAGD,wBAAgB,YAAY,CAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAgCnG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAmBA,wBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAmBA,wBAAgB,GAAG,SAyMlB"}
|
package/dist/node/context.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export interface AppContext {
|
|
|
9
9
|
dispose: () => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const CONFIG_FILE_NAMES: string[];
|
|
12
|
-
export declare function createAppContext(root: string
|
|
12
|
+
export declare function createAppContext(root: string, { verbose, }?: {
|
|
13
|
+
verbose?: boolean;
|
|
14
|
+
}): AppContext;
|
|
13
15
|
export declare function resolveProjectRoot(from: string): string;
|
|
14
16
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/node/context.ts"],"names":[],"mappings":"AAEA,OAAO,EACS,KAAK,MAAM,EAC1B,MAAM,MAAM,CAAC;AAOd,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,QAAQ,EACT,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,CAAC;IACjB,YAAY,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC7C,gBAAgB,EAAE,MAAM,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,UAG7B,CAAC;AAEF,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,MAAM,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/node/context.ts"],"names":[],"mappings":"AAEA,OAAO,EACS,KAAK,MAAM,EAC1B,MAAM,MAAM,CAAC;AAOd,OAAO,EACL,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,QAAQ,EACT,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,QAAQ,CAAC;IACjB,YAAY,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC7C,gBAAgB,EAAE,MAAM,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,iBAAiB,UAG7B,CAAC;AAEF,wBAAgB,gBAAgB,CAAE,IAAI,EAAE,MAAM,EAAE,EAC9C,OAAe,GAChB,GAAE;IACD,OAAO,CAAC,EAAE,OAAO,CAAC;CACd,GAAG,UAAU,CAuGlB;AAGD,wBAAgB,kBAAkB,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAaxD"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
1
|
+
import { E as e, F as t, J as n, Y as r, c as i, i as a, k as o, x as s } from "./shared-dB08amQA.js";
|
|
2
|
+
import { a as c, c as l } from "./useSidebarConfig-0kMemgUS.js";
|
|
3
3
|
// src/client/theme-default/composables/client-preferences/index.ts
|
|
4
|
-
function
|
|
5
|
-
return
|
|
4
|
+
function u() {
|
|
5
|
+
return l() + c();
|
|
6
6
|
}
|
|
7
7
|
// src/node/lib/html-template.ts
|
|
8
|
-
function
|
|
9
|
-
let t =
|
|
8
|
+
function d(e) {
|
|
9
|
+
let t = i(e.title), n = i(e.description), r = e.siteTitle !== void 0 && e.title !== e.siteTitle ? `${t} - ${i(e.siteTitle)}` : t, a = e.origin ?? "", o = e.canonicalUrl, s = o === void 0 ? "" : `\n <link rel="canonical" href="${i(o)}">`, c = o === void 0 ? "" : `\n <meta property="og:url" content="${i(o)}">`, l = e.ogImagePath === void 0 ? `${a}${e.base}og-image.png` : `${a}${e.ogImagePath}`, d = e.author === void 0 ? "" : `\n <meta name="author" content="${i(e.author)}">`, f = e.siteTitle === void 0 ? "" : `\n <meta property="og:site_name" content="${i(e.siteTitle)}">`, p = a === "" ? "" : `\n <link rel="alternate" type="application/rss+xml" title="${e.siteTitle === void 0 ? "RSS Feed" : i(e.siteTitle)}" href="${a}${e.base}feed.xml">`, m = (e.jsonLdBlocks ?? []).map((e) => `\n <script type="application/ld+json">${e}<\/script>`).join(""), h = e.headExtra === void 0 ? "" : e.headExtra + "\n";
|
|
10
10
|
return `<!DOCTYPE html>
|
|
11
11
|
<html lang="${e.lang ?? "en"}">
|
|
12
12
|
<head>
|
|
@@ -14,21 +14,21 @@ function u(e) {
|
|
|
14
14
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
15
15
|
<meta name="generator" content="Typerighter">
|
|
16
16
|
<meta name="robots" content="index, follow">
|
|
17
|
-
<title>${
|
|
17
|
+
<title>${r}</title>
|
|
18
18
|
<meta name="description" content="${n}">${d}${s}
|
|
19
19
|
<link rel="icon" href="${e.base}favicon.svg" type="image/svg+xml">
|
|
20
20
|
<link rel="apple-touch-icon" href="${e.base}apple-touch-icon.png">${p}
|
|
21
21
|
<meta property="og:type" content="${e.ogType ?? "article"}">${f}${c}
|
|
22
22
|
<meta property="og:title" content="${t}">
|
|
23
23
|
<meta property="og:description" content="${n}">
|
|
24
|
-
<meta property="og:image" content="${
|
|
24
|
+
<meta property="og:image" content="${i(l)}">
|
|
25
25
|
<meta name="twitter:card" content="summary_large_image">
|
|
26
26
|
<meta name="twitter:title" content="${t}">
|
|
27
27
|
<meta name="twitter:description" content="${n}">
|
|
28
|
-
<meta name="twitter:image" content="${
|
|
28
|
+
<meta name="twitter:image" content="${i(l)}">${m}
|
|
29
29
|
<script>
|
|
30
30
|
(function () {
|
|
31
|
-
${
|
|
31
|
+
${u()}
|
|
32
32
|
})()
|
|
33
33
|
<\/script>
|
|
34
34
|
${h} </head>
|
|
@@ -39,7 +39,7 @@ ${h} </head>
|
|
|
39
39
|
</html>`;
|
|
40
40
|
}
|
|
41
41
|
// src/node/build/seo/jsonld.ts
|
|
42
|
-
function
|
|
42
|
+
function f(e) {
|
|
43
43
|
return JSON.stringify({
|
|
44
44
|
"@context": "https://schema.org",
|
|
45
45
|
"@type": "Article",
|
|
@@ -53,7 +53,7 @@ function d(e) {
|
|
|
53
53
|
...e.dateModified === void 0 ? {} : { dateModified: e.dateModified }
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function p(e) {
|
|
57
57
|
return JSON.stringify({
|
|
58
58
|
"@context": "https://schema.org",
|
|
59
59
|
"@type": "WebSite",
|
|
@@ -61,15 +61,15 @@ function f(e) {
|
|
|
61
61
|
url: e.canonicalUrl
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
let { pageRoute: t, title:
|
|
64
|
+
function m(e) {
|
|
65
|
+
let { pageRoute: t, title: n, origin: i = "" } = e, a = o(t), c = s(e.base);
|
|
66
66
|
if (t === "/") return;
|
|
67
67
|
let l = t.split("/").filter(Boolean), u = l.map((e, t) => {
|
|
68
|
-
let
|
|
68
|
+
let o = t === l.length - 1, s = o && a ? l.slice(0, t) : l.slice(0, t + 1), u = s.length > 0 ? `${i}${c}${s.join("/")}` : `${i}${c}`;
|
|
69
69
|
return {
|
|
70
70
|
"@type": "ListItem",
|
|
71
71
|
position: t + 1,
|
|
72
|
-
name:
|
|
72
|
+
name: o ? n : r(e),
|
|
73
73
|
item: u
|
|
74
74
|
};
|
|
75
75
|
});
|
|
@@ -80,38 +80,38 @@ function p(e) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
// src/node/build/seo/page.ts
|
|
83
|
-
var
|
|
84
|
-
function
|
|
85
|
-
let
|
|
86
|
-
title:
|
|
87
|
-
canonicalUrl:
|
|
88
|
-
}) :
|
|
89
|
-
title:
|
|
90
|
-
description:
|
|
91
|
-
canonicalUrl:
|
|
92
|
-
author:
|
|
93
|
-
dateModified:
|
|
94
|
-
}),
|
|
95
|
-
pageRoute:
|
|
96
|
-
title:
|
|
97
|
-
origin:
|
|
98
|
-
base:
|
|
83
|
+
var h = 160;
|
|
84
|
+
function g(n, r, i) {
|
|
85
|
+
let s = n.seoMetadata?.title ?? n.title, c = _(n), l = o(r) ? e(r) + "/" : r, u = l === "/", d = (i.origin ?? "") + i.base + t(l), h = n.fileMetadata?.mtimeSecs === void 0 ? void 0 : a(n.fileMetadata.mtimeSecs * 1e3), g = [u ? p({
|
|
86
|
+
title: s,
|
|
87
|
+
canonicalUrl: d
|
|
88
|
+
}) : f({
|
|
89
|
+
title: s,
|
|
90
|
+
description: c,
|
|
91
|
+
canonicalUrl: d,
|
|
92
|
+
author: i.author,
|
|
93
|
+
dateModified: h
|
|
94
|
+
}), m({
|
|
95
|
+
pageRoute: r,
|
|
96
|
+
title: s,
|
|
97
|
+
origin: i.origin,
|
|
98
|
+
base: i.base
|
|
99
99
|
})].filter((e) => e !== void 0);
|
|
100
100
|
return {
|
|
101
|
-
title:
|
|
102
|
-
description:
|
|
103
|
-
canonicalUrl:
|
|
104
|
-
isHomepage:
|
|
105
|
-
ogType:
|
|
106
|
-
ogImagePath:
|
|
107
|
-
jsonLdBlocks:
|
|
101
|
+
title: s,
|
|
102
|
+
description: c,
|
|
103
|
+
canonicalUrl: d,
|
|
104
|
+
isHomepage: u,
|
|
105
|
+
ogType: u ? "website" : "article",
|
|
106
|
+
ogImagePath: n.seoMetadata?.image,
|
|
107
|
+
jsonLdBlocks: g
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
function g(e) {
|
|
111
|
-
return e.seoMetadata?.description === void 0 ? e.frontmatter.description === void 0 ? e.excerpt === void 0 ? _(e) : t(e.excerpt, m) : String(e.frontmatter.description) : e.seoMetadata.description;
|
|
112
|
-
}
|
|
113
110
|
function _(e) {
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
return e.seoMetadata?.description === void 0 ? e.frontmatter.description === void 0 ? e.excerpt === void 0 ? v(e) : n(e.excerpt, h) : String(e.frontmatter.description) : e.seoMetadata.description;
|
|
112
|
+
}
|
|
113
|
+
function v(e) {
|
|
114
|
+
let t = e.headings.filter((e) => e.level === 2).slice(0, 5).map((e) => e.title);
|
|
115
|
+
return t.length === 0 ? n(e.title, h) : n(`${e.title}: ${t.join(", ")}`, h);
|
|
116
116
|
}
|
|
117
|
-
export {
|
|
117
|
+
export { d as n, g as t };
|
package/dist/prerenderWorker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as e } from "./shared-dB08amQA.js";
|
|
2
|
-
import { n as t, t as n } from "./page-
|
|
2
|
+
import { n as t, t as n } from "./page-ChF2owpa.js";
|
|
3
3
|
import { pathToFileURL as r } from "node:url";
|
|
4
4
|
import { parentPort as i, workerData as a } from "node:worker_threads";
|
|
5
5
|
// src/node/build/prerenderWorker.ts
|