ssqch 0.12.0 → 0.13.0

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.
Files changed (130) hide show
  1. package/bundled/completions/bash +66 -8
  2. package/bundled/completions/elvish +23 -4
  3. package/bundled/completions/fish +36 -25
  4. package/bundled/completions/powershell +25 -4
  5. package/bundled/completions/zsh +44 -10
  6. package/bundled/docs/agents.md +2 -2
  7. package/bundled/docs/build-summary.md +1 -1
  8. package/bundled/docs/comparing-builds.md +2 -2
  9. package/bundled/docs/configuring.md +3 -6
  10. package/bundled/docs/deploying.md +1 -1
  11. package/bundled/docs/field-guide.md +4 -4
  12. package/bundled/docs/github-pages.md +1 -0
  13. package/bundled/docs/index.md +1 -1
  14. package/bundled/docs/install.md +1 -1
  15. package/bundled/docs/known-gaps.md +1 -1
  16. package/bundled/docs/markdown.md +8 -12
  17. package/bundled/docs/nav.yml +5 -1
  18. package/bundled/docs/netlify.md +4 -2
  19. package/bundled/docs/patrol.md +48 -0
  20. package/bundled/docs/plugins.md +6 -6
  21. package/bundled/docs/robots.md +72 -0
  22. package/bundled/docs/seo.md +2 -38
  23. package/bundled/docs/serving-markdown.md +142 -0
  24. package/bundled/docs/template-languages.md +1 -1
  25. package/bundled/docs/templates.md +1 -1
  26. package/bundled/docs/trailheads/from-hugo.md +5 -3
  27. package/bundled/docs/trailheads/from-jekyll.md +54 -13
  28. package/bundled/docs/trailheads/from-mkdocs.md +15 -12
  29. package/bundled/docs/trailheads/from-vitepress.md +13 -11
  30. package/bundled/docs/trailheads.md +3 -3
  31. package/bundled/docs/where-values-come-from.md +5 -5
  32. package/bundled/docs/writing-plugins.md +69 -0
  33. package/bundled/ssqch.d.ts +111 -43
  34. package/bundled/starter/engines/index.edge +1 -0
  35. package/bundled/starter/engines/index.ejs +1 -0
  36. package/bundled/starter/engines/index.hbs +1 -0
  37. package/bundled/starter/engines/index.liquid +1 -0
  38. package/bundled/starter/engines/layout.edge +7 -0
  39. package/bundled/starter/engines/layout.ejs +4 -0
  40. package/bundled/starter/engines/layout.hbs +4 -0
  41. package/bundled/starter/engines/layout.liquid +4 -0
  42. package/bundled/starter/src/_data/site.json +1 -0
  43. package/bundled/starter/src/_includes/layout.jinja +4 -0
  44. package/bundled/starter/src/index.jinja +1 -0
  45. package/bundled/starter/ssqch.config.js +14 -1
  46. package/bundled/starter-docs/engines/edge/base.edge +7 -0
  47. package/bundled/starter-docs/engines/edge/doc.edge +4 -0
  48. package/bundled/starter-docs/engines/ejs/base.ejs +4 -0
  49. package/bundled/starter-docs/engines/ejs/doc.ejs +4 -0
  50. package/bundled/starter-docs/engines/hbs/base.hbs +4 -0
  51. package/bundled/starter-docs/engines/hbs/doc.hbs +3 -0
  52. package/bundled/starter-docs/engines/liquid/base.liquid +4 -0
  53. package/bundled/starter-docs/engines/liquid/doc.liquid +4 -0
  54. package/bundled/starter-docs/src/_data/site.json +1 -0
  55. package/bundled/starter-docs/src/_includes/base.jinja +4 -0
  56. package/bundled/starter-docs/src/_includes/doc.jinja +4 -0
  57. package/bundled/starter-docs/src/assets/docs.css +4 -0
  58. package/bundled/starter-docs/src/assets/docs.js +17 -0
  59. package/bundled/starter-docs/ssqch.config.js +14 -1
  60. package/lib/assets.js +9 -9
  61. package/lib/chunk-25WERNDD.js +112 -0
  62. package/lib/{chunk-4ZMNLWE4.js → chunk-2BJFGKOE.js} +2 -2
  63. package/lib/chunk-2FKYWYAB.js +268 -0
  64. package/lib/{chunk-M2BBE2C3.js → chunk-3ZTRIO6O.js} +18 -17
  65. package/lib/{chunk-57HLSKZS.js → chunk-4AZFCSGJ.js} +2 -2
  66. package/lib/{chunk-ULQHJ4TS.js → chunk-55WXDGO4.js} +3 -3
  67. package/lib/{chunk-JX43SJHU.js → chunk-6FY77I4M.js} +24 -22
  68. package/lib/{chunk-RY3KLUQ3.js → chunk-6OUCRDYI.js} +267 -202
  69. package/lib/{chunk-EVFNYUTR.js → chunk-6U5VIQVY.js} +5 -5
  70. package/lib/{chunk-N3IZ44XY.js → chunk-7U5GWTEH.js} +88 -54
  71. package/lib/{chunk-VTYQ3JKL.js → chunk-AIJNG6MJ.js} +2 -2
  72. package/lib/{chunk-IIBZPHAW.js → chunk-C2Q7JKFI.js} +8 -8
  73. package/lib/{chunk-6CSH757V.js → chunk-DFJFHULZ.js} +33 -8
  74. package/lib/{chunk-XVV7JJK7.js → chunk-ENWDM2RW.js} +40 -39
  75. package/lib/{chunk-JUALMFW3.js → chunk-ER72RPD6.js} +1 -1
  76. package/lib/{chunk-RFREB3SI.js → chunk-F3JPNFCZ.js} +7 -7
  77. package/lib/{chunk-LLOA3QXV.js → chunk-FENJHLNM.js} +3 -2
  78. package/lib/{chunk-UU43WIZG.js → chunk-FJML7INB.js} +4 -2
  79. package/lib/{chunk-IZCF4UH3.js → chunk-FQZDUDFK.js} +1 -1
  80. package/lib/{chunk-GVHQ37JE.js → chunk-GSNRAGKQ.js} +10 -5
  81. package/lib/{chunk-L2IY4P6O.js → chunk-GU7BBYWB.js} +3 -3
  82. package/lib/{chunk-RGYJQYW3.js → chunk-HDKU6LRI.js} +32 -5
  83. package/lib/{chunk-IQUGLVZY.js → chunk-K5WZ2VYK.js} +4 -4
  84. package/lib/{chunk-JVT5ZRRH.js → chunk-OOKBXQAY.js} +5 -5
  85. package/lib/{chunk-MOLTDO5A.js → chunk-SNQOHNXE.js} +1 -1
  86. package/lib/{chunk-Z3XH4KWX.js → chunk-SPIFZBIW.js} +1 -1
  87. package/lib/{chunk-FNNXRVSU.js → chunk-T5IUI7W7.js} +10 -10
  88. package/lib/{chunk-5HEZ3WUQ.js → chunk-TGSVSG2G.js} +2 -2
  89. package/lib/{chunk-3GROJ3TY.js → chunk-U2KEMVXO.js} +24 -17
  90. package/lib/{chunk-4B3N44SN.js → chunk-UHRBPZ4A.js} +3 -3
  91. package/lib/{chunk-GWWA5Y3X.js → chunk-ULCT3PAV.js} +1 -1
  92. package/lib/{chunk-7RGEWDLF.js → chunk-UZNUS7RP.js} +10 -8
  93. package/lib/{chunk-DZ5F5XSI.js → chunk-V3G2QGL3.js} +10 -105
  94. package/lib/{chunk-DOHOKUGB.js → chunk-VILOEVK7.js} +50 -26
  95. package/lib/{chunk-DXMDXHV7.js → chunk-WGAIE3DD.js} +15 -14
  96. package/lib/{chunk-G3RFQDKO.js → chunk-WUCRAV36.js} +8 -6
  97. package/lib/{chunk-52ROOMBZ.js → chunk-XYAWJTHM.js} +9 -9
  98. package/lib/{chunk-L3K7MMFC.js → chunk-YA23NDMW.js} +2 -2
  99. package/lib/{chunk-R7PBREXL.js → chunk-YNJNMQWU.js} +8 -5
  100. package/lib/{chunk-AK7ZKSZP.js → chunk-ZMG25MXF.js} +17 -16
  101. package/lib/cli.js +56 -34
  102. package/lib/elements.js +9 -9
  103. package/lib/from-hugo.js +36 -0
  104. package/lib/from-jekyll.js +41 -0
  105. package/lib/from-mkdocs.js +49 -0
  106. package/lib/from-vitepress.js +49 -0
  107. package/lib/image.js +10 -10
  108. package/lib/links.js +9 -9
  109. package/lib/llms.js +521 -47
  110. package/lib/minify.js +10 -10
  111. package/lib/redirects.js +9 -9
  112. package/lib/robots.js +87 -0
  113. package/lib/rss.js +22 -12
  114. package/lib/sass.js +10 -10
  115. package/lib/sitemap.js +22 -33
  116. package/lib/ssqch.js +5 -5
  117. package/lib/vue.js +14 -13
  118. package/package.json +21 -1
  119. package/types/from-hugo.d.ts +5 -0
  120. package/types/from-jekyll.d.ts +11 -0
  121. package/types/from-mkdocs.d.ts +11 -0
  122. package/types/from-vitepress.d.ts +5 -0
  123. package/types/index.d.ts +45 -29
  124. package/types/llms.d.ts +12 -8
  125. package/types/robots.d.ts +13 -0
  126. package/types/sass.d.ts +1 -1
  127. package/types/sitemap.d.ts +3 -5
  128. package/wasm/markdown.wasm +0 -0
  129. /package/lib/{chunk-JX43SJHU.js.LEGAL.txt → chunk-6FY77I4M.js.LEGAL.txt} +0 -0
  130. /package/lib/{chunk-R7PBREXL.js.LEGAL.txt → chunk-YNJNMQWU.js.LEGAL.txt} +0 -0
@@ -21,26 +21,28 @@ import {
21
21
  siteArgs,
22
22
  sitePath,
23
23
  tocOf
24
- } from "./chunk-L3K7MMFC.js";
24
+ } from "./chunk-YA23NDMW.js";
25
25
  import {
26
- builtinFilters,
27
- excerpt,
28
- headings
29
- } from "./chunk-DZ5F5XSI.js";
26
+ builtinFilters
27
+ } from "./chunk-V3G2QGL3.js";
30
28
  import {
31
29
  commandLine
32
30
  } from "./chunk-4Q6WMTER.js";
33
31
  import {
34
32
  measure,
35
33
  overBudget
36
- } from "./chunk-4B3N44SN.js";
34
+ } from "./chunk-UHRBPZ4A.js";
35
+ import {
36
+ excerpt,
37
+ headings
38
+ } from "./chunk-25WERNDD.js";
37
39
  import {
38
40
  checkPages,
39
41
  rewriteBase
40
- } from "./chunk-DOHOKUGB.js";
42
+ } from "./chunk-VILOEVK7.js";
41
43
  import {
42
44
  Profile
43
- } from "./chunk-EVFNYUTR.js";
45
+ } from "./chunk-6U5VIQVY.js";
44
46
  import {
45
47
  VERSION
46
48
  } from "./chunk-AD3HAW3W.js";
@@ -66,29 +68,29 @@ import {
66
68
  site,
67
69
  withPage,
68
70
  writeHighlightCss
69
- } from "./chunk-RY3KLUQ3.js";
70
- import {
71
- closest,
72
- closestPath
73
- } from "./chunk-FVZ5JBRI.js";
71
+ } from "./chunk-6OUCRDYI.js";
74
72
  import {
75
73
  globBase,
76
74
  globSet,
77
75
  globToRegExp,
78
76
  isGlob
79
- } from "./chunk-Z3XH4KWX.js";
77
+ } from "./chunk-SPIFZBIW.js";
78
+ import {
79
+ closest,
80
+ closestPath
81
+ } from "./chunk-FVZ5JBRI.js";
80
82
  import {
81
83
  ISSUES_URL,
82
84
  PASSED_THIS_TREE,
83
85
  SOMETHING_LARGE
84
- } from "./chunk-UU43WIZG.js";
86
+ } from "./chunk-FJML7INB.js";
85
87
  import {
86
88
  describeThrown,
87
89
  loadedFiles,
88
90
  settle,
89
91
  shownPath,
90
92
  watchSettle
91
- } from "./chunk-57HLSKZS.js";
93
+ } from "./chunk-4AZFCSGJ.js";
92
94
  import {
93
95
  BuildError,
94
96
  Diagnostics,
@@ -102,7 +104,6 @@ import {
102
104
  decodeText,
103
105
  error,
104
106
  find,
105
- frontMatterSettings,
106
107
  getPath,
107
108
  isCapturing,
108
109
  isPlainObject,
@@ -119,7 +120,7 @@ import {
119
120
  toDate,
120
121
  warn,
121
122
  warning
122
- } from "./chunk-R7PBREXL.js";
123
+ } from "./chunk-YNJNMQWU.js";
123
124
  import {
124
125
  comparePaths,
125
126
  compareText,
@@ -24168,7 +24169,6 @@ var Site = class {
24168
24169
  profile;
24169
24170
  constructor(config, keepLayers = false) {
24170
24171
  this.config = config;
24171
- frontMatterSettings.trimAfter = config.trimAfterFrontMatter;
24172
24172
  this.dirs = dirsOf(config);
24173
24173
  this.keepLayers = keepLayers;
24174
24174
  this.profile = new Profile(config.profile);
@@ -24232,6 +24232,7 @@ var Site = class {
24232
24232
  const pipeFilters = /* @__PURE__ */ new Map();
24233
24233
  for (const row of TABLE) {
24234
24234
  if (row.kind !== "filter" || !row.alias || config.filters.has(row.word)) continue;
24235
+ if (row.ssqch !== "base" && !globals.has(row.ssqch)) continue;
24235
24236
  const takesUrl = row.ssqch === "base";
24236
24237
  let warned = false;
24237
24238
  pipeFilters.set(row.word, (...args) => {
@@ -25343,7 +25344,7 @@ async function build(config) {
25343
25344
  if (config.profile) report.profile = site2.profile.report();
25344
25345
  return report;
25345
25346
  }
25346
- async function inspectPages(config) {
25347
+ async function tracePages(config) {
25347
25348
  const site2 = new Site(config, true);
25348
25349
  const { dirs } = site2;
25349
25350
  if (!isDir(dirs.input)) bail(`input directory ${shownDir(config, config.input)} does not exist`);
@@ -25437,6 +25438,7 @@ var Renderer = class {
25437
25438
  for (let i2 = from; i2 < tpl.engines.length; i2++) {
25438
25439
  const name = tpl.engines[i2];
25439
25440
  const engine = this.site.engines.get(name);
25441
+ if (name === "md" && page.url !== null) this.site.config.markdownSources?.set(page.url, content);
25440
25442
  let out2;
25441
25443
  try {
25442
25444
  out2 = engine.render(content, data2, ctx);
@@ -26205,7 +26207,7 @@ function recordOutputs(config, dirs, outputs, pagePaths) {
26205
26207
 
26206
26208
  export {
26207
26209
  build,
26208
- inspectPages,
26210
+ tracePages,
26209
26211
  inEdgeCode,
26210
26212
  edgeCodeMentionsForTest,
26211
26213
  asTextForTest,
@@ -26213,4 +26215,4 @@ export {
26213
26215
  runCommand,
26214
26216
  OUTPUT_LIST
26215
26217
  };
26216
- /*! For license information please see chunk-JX43SJHU.js.LEGAL.txt */
26218
+ /*! For license information please see chunk-6FY77I4M.js.LEGAL.txt */