typerighter 0.57.2 → 0.57.4

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.
@@ -1,5 +1,5 @@
1
- import { s as e, t } from "./vite-D3_cd2_2.js";
2
- import { n } from "./context-CPrHBM3S.js";
1
+ import { s as e, t } from "./vite-l2QQKyhl.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.2 (built 11/9/2026, 9:42:41 AM)\n`), n.fresh && (process.env.TYPEDOWN_NO_CACHE = "1");
373
+ n.verbose && console.log(`${k} cli v0.57.4 (built 11/10/2026, 5:17:03 AM)\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
- let i = n(N(t));
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-DPhEzp34.js");
399
+ let { initialize: n } = await import("./init-BND13fc5.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
- let i = n(N(e));
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.2"), i.parse();
438
+ }), i.help(), i.version("0.57.4"), 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.2 (built 11/9/2026, 9:42:41 AM)`), console.log(`${k} rpc v${t}`), console.log("");
446
+ console.log(`${k} cli v0.57.4 (built 11/10/2026, 5:17:03 AM)`), 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-Dpa3j5Sm.js";
1
+ export { t as cli } from "./cli-MA8-6Usn.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,GAAG,EACR,KAAK,SAAS,EAEd,KAAK,GAAG,EACR,KAAK,UAAU,EAChB,MAAM,KAAK,CAAC;AAcb,OAA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uB;iBACV,MAAM;IACnB,0CAA0C;cAChC,MAAM;IAChB,qDAAqD;aAC5C,MAAM;IACf,0BAA0B;WACnB,MAAM;IACb,wBAAwB;WACjB;QACL,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;KACd;IACD,kBAAkB;aACT,MAAM;IACf,mBAAmB;cACT,MAAM;IAChB,qGAAqG;cAC3F,MAAM;IAChB,uBAAuB;UACjB;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,EAAE;IACH,mBAAmB;WACZ,aAAa;EAiNrB;AAYD,wBAAgB,WAAW,IAAK,GAAG,CAAC,gBAAgB,CAAC,CAEpD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,GAAG,EACR,KAAK,SAAS,EAEd,KAAK,GAAG,EACR,KAAK,UAAU,EAChB,MAAM,KAAK,CAAC;AAcb,OAAO,EACuB,KAAK,MAAM,EACxC,MAAM,UAAU,CAAC;AAClB,OAAO,EAML,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,UAAU,CAAC;AAElB,OAAO,EACL,YAAY,GACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,SAAS,EAAE,QAAQ,GACpB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,OAAO,GACR,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,QAAQ,EACR,KAAK,KAAK,GACX,MAAM,0DAA0D,CAAC;AAElE,MAAM,WAAW,kBAAkB;IACjC,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,MAAM,CA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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-D-dbbyVD.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-BQYETY9F.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-D-dbbyVD.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-BQYETY9F.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 t = new c(_(e));
123
- function r() {
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
- t.writeToFile("VITE", e);
128
+ r.writeToFile("VITE", e);
129
129
  },
130
- warn(n) {
131
- e.warn(n), t.writeToFile("VITE:WARN", n);
130
+ warn(t) {
131
+ e.warn(t), r.writeToFile("VITE:WARN", t);
132
132
  },
133
- error(n) {
134
- e.error(n), t.writeToFile("VITE:ERROR", n);
133
+ error(t) {
134
+ e.error(t), r.writeToFile("VITE:ERROR", t);
135
135
  }
136
136
  };
137
137
  }
138
- let a, s, l, d = !1;
139
- function f() {
140
- t.log(""), h(), process.exit(0);
141
- }
138
+ let s, l, d, f = !1;
142
139
  function p() {
143
- h();
144
- }
145
- async function m() {
146
- if (a) return a;
147
- process.on("SIGINT", f), process.on("SIGTERM", f), s = new i({ root: e }), await new Promise((e, t) => {
148
- s?.once("error", t), s?.listen(() => {
149
- s?.removeListener("error", t), e();
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 t = s.host, n = s.port;
153
- if (t === void 0 || n === void 0) throw Error("RPC server started but host/port not available");
154
- return l = await o.connectTcp(t, n), a = new u(l), s.unref(), process.on("exit", p), a;
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 h() {
157
- d || (d = !0, process.removeListener("exit", p), process.removeListener("SIGINT", f), process.removeListener("SIGTERM", f), l?.dispose(), s?.close(), a = void 0, s = void 0, l = void 0);
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: t,
162
- getTdContext: m,
163
- createViteLogger: r,
164
- dispose: h
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-D3_cd2_2.js";
2
- import { t as s } from "./cli-Dpa3j5Sm.js";
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./vite-l2QQKyhl.js";
2
+ import { t as s } from "./cli-MA8-6Usn.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-CPrHBM3S.js";
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.2",
772
+ typerighter: "^0.57.4",
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,CAmQf"}
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,CAiRf"}
@@ -2,4 +2,5 @@ export { buildPageSeo } from './page';
2
2
  export type { PageSeo, PageSeoConfig } from './page';
3
3
  export { buildSitemap, buildRobotsTxt } from './sitemap';
4
4
  export { buildRssFeed } from './feed';
5
+ export { buildLlmsTxt } from './llms';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/build/seo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/node/build/seo/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { TdSidebarItem } from '@typerighter/rpc-client';
2
+ export declare function buildLlmsTxt(items: TdSidebarItem[], base: string, origin: string, siteTitle: string, siteDescription: string | undefined): string;
3
+ //# sourceMappingURL=llms.d.ts.map
@@ -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,CA8BnG"}
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,SAiMlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/node/cli/index.ts"],"names":[],"mappings":"AAmBA,wBAAgB,GAAG,SAyMlB"}
@@ -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): AppContext;
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":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M,CAaxD"}
@@ -1,12 +1,12 @@
1
- import { F as e, J as t, Y as n, c as r, i, k as a, x as o } from "./shared-dB08amQA.js";
2
- import { a as s, c } from "./useSidebarConfig-0kMemgUS.js";
1
+ import { E as e, F as t, X as n, Y as r, c as i, i as a, k as o, x as s } from "./shared-BhUHq27C.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 l() {
5
- return c() + s();
4
+ function u() {
5
+ return l() + c();
6
6
  }
7
7
  // src/node/lib/html-template.ts
8
- function u(e) {
9
- let t = r(e.title), n = r(e.description), i = e.siteTitle !== void 0 && e.title !== e.siteTitle ? `${t} - ${r(e.siteTitle)}` : t, a = e.origin ?? "", o = e.canonicalUrl, s = o === void 0 ? "" : `\n <link rel="canonical" href="${r(o)}">`, c = o === void 0 ? "" : `\n <meta property="og:url" content="${r(o)}">`, u = e.ogImagePath === void 0 ? `${a}${e.base}og-image.png` : `${a}${e.ogImagePath}`, d = e.author === void 0 ? "" : `\n <meta name="author" content="${r(e.author)}">`, f = e.siteTitle === void 0 ? "" : `\n <meta property="og:site_name" content="${r(e.siteTitle)}">`, p = a === "" ? "" : `\n <link rel="alternate" type="application/rss+xml" title="${e.siteTitle === void 0 ? "RSS Feed" : r(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";
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>${i}</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="${r(u)}">
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="${r(u)}">${m}
28
+ <meta name="twitter:image" content="${i(l)}">${m}
29
29
  <script>
30
30
  (function () {
31
- ${l()}
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 d(e) {
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 f(e) {
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 p(e) {
65
- let { pageRoute: t, title: r, origin: i = "" } = e, s = a(t), c = o(e.base);
64
+ function m(e) {
65
+ let { pageRoute: t, title: r, 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 a = t === l.length - 1, o = a && s ? l.slice(0, t) : l.slice(0, t + 1), u = o.length > 0 ? `${i}${c}${o.join("/")}` : `${i}${c}`;
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: a ? r : n(e),
72
+ name: o ? r : n(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 m = 160;
84
- function h(t, n, r) {
85
- let a = t.seoMetadata?.title ?? t.title, o = g(t), s = n === "/", c = (r.origin ?? "") + r.base + e(n), l = t.fileMetadata?.mtimeSecs === void 0 ? void 0 : i(t.fileMetadata.mtimeSecs * 1e3), u = [s ? f({
86
- title: a,
87
- canonicalUrl: c
88
- }) : d({
89
- title: a,
90
- description: o,
91
- canonicalUrl: c,
92
- author: r.author,
93
- dateModified: l
94
- }), p({
95
- pageRoute: n,
96
- title: a,
97
- origin: r.origin,
98
- base: r.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: a,
102
- description: o,
103
- canonicalUrl: c,
104
- isHomepage: s,
105
- ogType: s ? "website" : "article",
106
- ogImagePath: t.seoMetadata?.image,
107
- jsonLdBlocks: u
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
- let n = e.headings.filter((e) => e.level === 2).slice(0, 5).map((e) => e.title);
115
- return n.length === 0 ? t(e.title, m) : t(`${e.title}: ${n.join(", ")}`, m);
111
+ return e.seoMetadata?.description === void 0 ? e.frontmatter.description === void 0 ? e.excerpt === void 0 ? v(e) : r(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 ? r(e.title, h) : r(`${e.title}: ${t.join(", ")}`, h);
116
116
  }
117
- export { u as n, h as t };
117
+ export { d as n, g as t };
@@ -1,5 +1,5 @@
1
- import { F as e } from "./shared-dB08amQA.js";
2
- import { n as t, t as n } from "./page-BbSO0VG8.js";
1
+ import { F as e } from "./shared-BhUHq27C.js";
2
+ import { n as t, t as n } from "./page-BjRVeDZC.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
@@ -1,4 +1,4 @@
1
- import { c as e } from "./shared-dB08amQA.js";
1
+ import { c as e } from "./shared-BhUHq27C.js";
2
2
  import { t } from "./temml-CjI4drVW.js";
3
3
  import { t as n } from "./inlineRe-CoUp2DgK.js";
4
4
  // src/client/theme-default/utils/renderMath.ts
@@ -431,4 +431,4 @@ function Ce(e) {
431
431
  function we(e) {
432
432
  return Math.floor(Date.now() / 1e3) - e < ye ? $(e) : Q(e);
433
433
  }
434
- export { i as $, ie as A, S as B, O as C, j as D, A as E, le as F, f as G, w as H, P as I, m as J, p as K, _ as L, oe as M, se as N, M as O, ce as P, c as Q, y as R, D as S, k as T, T as U, g as V, d as W, l as X, h as Y, u as Z, F as _, $ as a, R as b, he as c, G as d, a as et, me as f, de as g, ue as h, Ce as i, ae as j, N as k, _e as l, pe as m, Se as n, o as nt, we as o, fe as p, ee as q, be as r, s as rt, ve as s, Q as t, r as tt, ge as u, I as v, re as w, ne as x, L as y, x as z };
434
+ export { c as $, ie as A, x as B, O as C, j as D, A as E, le as F, d as G, g as H, P as I, ee as J, f as K, _ as L, oe as M, se as N, M as O, ce as P, u as Q, y as R, D as S, k as T, w as U, S as V, T as W, h as X, m as Y, l as Z, F as _, $ as a, R as b, he as c, G as d, i as et, me as f, de as g, ue as h, Ce as i, s as it, ae as j, N as k, _e as l, pe as m, Se as n, r as nt, we as o, fe as p, p as q, be as r, o as rt, ve as s, Q as t, a as tt, ge as u, I as v, re as w, ne as x, L as y, b as z };
package/dist/shared.js CHANGED
@@ -1 +1 @@
1
- export { $ as CONTENT_EXTENSIONS, et as CONTENT_GLOB, Q as EXTERNAL_URL_RE, tt as INDEX_FILENAME, nt as SEARCH_FIELDS, rt as SEARCH_STORE_FIELDS, h as buildContentTree, g as buildDirectoryListingMap, p as debounce, x as ensureTrailingSlash, c as escapeHtml, s as escapeRegex, t as formatAbsoluteTime, n as formatDateString, r as formatEditTime, i as formatIsoDate, a as formatRelativeTime, o as formatTime, S as getAnchor, C as getDirectoryFromPageUrl, w as getDirectoryUrl, T as getIndexUrl, _ as getNodeIndexItem, E as getParentUrl, D as getTdContentUrl, v as getTdIndexTitle, y as getTdResourceTitle, O as getUrlPath, f as isBuiltinField, b as isIndexFile, k as isIndexUrl, X as isOptional, A as isUrlAncestorOf, j as isUrlExternal, M as isUrlToPage, W as kebabToPascal, Z as makeOptional, G as parseNumericPrefix, K as pascalToKebab, V as path, N as resolveRootUrl, l as sanitizeInlineHtml, q as snakeToKebab, P as stripAnchor, u as stripHtml, F as stripLeadingSlash, I as stripTrailingSlash, m as throttle, J as truncate, d as unescapeHtml, Y as unslugify } from "./shared-dB08amQA.js";
1
+ export { et as CONTENT_EXTENSIONS, tt as CONTENT_GLOB, $ as EXTERNAL_URL_RE, nt as INDEX_FILENAME, rt as SEARCH_FIELDS, it as SEARCH_STORE_FIELDS, h as buildContentTree, g as buildDirectoryListingMap, p as debounce, x as ensureTrailingSlash, c as escapeHtml, s as escapeRegex, t as formatAbsoluteTime, n as formatDateString, r as formatEditTime, i as formatIsoDate, a as formatRelativeTime, o as formatTime, S as getAnchor, C as getDirectoryFromPageUrl, w as getDirectoryUrl, T as getIndexUrl, _ as getNodeIndexItem, E as getParentUrl, D as getTdContentUrl, v as getTdIndexTitle, y as getTdResourceTitle, O as getUrlPath, f as isBuiltinField, b as isIndexFile, k as isIndexUrl, Z as isOptional, A as isUrlAncestorOf, j as isUrlExternal, M as isUrlToPage, G as kebabToPascal, Q as makeOptional, K as parseNumericPrefix, q as pascalToKebab, H as path, N as resolveRootUrl, l as sanitizeInlineHtml, J as snakeToKebab, P as stripAnchor, u as stripHtml, F as stripLeadingSlash, I as stripTrailingSlash, m as throttle, Y as truncate, d as unescapeHtml, X as unslugify } from "./shared-BhUHq27C.js";