@dogsbay/ssg 0.2.0-beta.138 → 0.2.0-beta.139

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,31 +1,31 @@
1
1
  Third-party software in @dogsbay/ssg (dist/package/)
2
2
 
3
3
  ========================================================================
4
- @dogsbay/elements@0.2.0-beta.138 (MIT)
4
+ @dogsbay/elements@0.2.0-beta.139 (MIT)
5
5
  https://github.com/dogsbay/dogsbay.git
6
6
 
7
7
  Licensed under MIT; the package ships no licence file.
8
8
 
9
9
  ========================================================================
10
- @dogsbay/primitives@0.2.0-beta.138 (MIT)
10
+ @dogsbay/primitives@0.2.0-beta.139 (MIT)
11
11
  https://github.com/dogsbay/dogsbay.git
12
12
 
13
13
  Licensed under MIT; the package ships no licence file.
14
14
 
15
15
  ========================================================================
16
- @dogsbay/render-html@0.2.0-beta.138 (MIT)
16
+ @dogsbay/render-html@0.2.0-beta.139 (MIT)
17
17
  https://github.com/dogsbay/dogsbay.git
18
18
 
19
19
  Licensed under MIT; the package ships no licence file.
20
20
 
21
21
  ========================================================================
22
- @dogsbay/search@0.2.0-beta.138 (MIT)
22
+ @dogsbay/search@0.2.0-beta.139 (MIT)
23
23
  https://github.com/dogsbay/dogsbay.git
24
24
 
25
25
  Licensed under MIT; the package ships no licence file.
26
26
 
27
27
  ========================================================================
28
- @dogsbay/ui@0.2.0-beta.138 (MIT)
28
+ @dogsbay/ui@0.2.0-beta.139 (MIT)
29
29
  https://github.com/dogsbay/dogsbay.git
30
30
 
31
31
  Licensed under MIT; the package ships no licence file.
@@ -1085,31 +1085,31 @@ var CLIENT_CANDIDATES = ['""', '"&"', '"\\\\$&")).join("|")})', '"\\\\$&")}"', '
1085
1085
  var SITE_NOTICES = `Third-party software in this site's _dogsbay/ files (dogsbay.js, site.css) and pages
1086
1086
 
1087
1087
  ========================================================================
1088
- @dogsbay/elements@0.2.0-beta.138 (MIT)
1088
+ @dogsbay/elements@0.2.0-beta.139 (MIT)
1089
1089
  https://github.com/dogsbay/dogsbay.git
1090
1090
 
1091
1091
  Licensed under MIT; the package ships no licence file.
1092
1092
 
1093
1093
  ========================================================================
1094
- @dogsbay/primitives@0.2.0-beta.138 (MIT)
1094
+ @dogsbay/primitives@0.2.0-beta.139 (MIT)
1095
1095
  https://github.com/dogsbay/dogsbay.git
1096
1096
 
1097
1097
  Licensed under MIT; the package ships no licence file.
1098
1098
 
1099
1099
  ========================================================================
1100
- @dogsbay/render-html@0.2.0-beta.138 (MIT)
1100
+ @dogsbay/render-html@0.2.0-beta.139 (MIT)
1101
1101
  https://github.com/dogsbay/dogsbay.git
1102
1102
 
1103
1103
  Licensed under MIT; the package ships no licence file.
1104
1104
 
1105
1105
  ========================================================================
1106
- @dogsbay/search@0.2.0-beta.138 (MIT)
1106
+ @dogsbay/search@0.2.0-beta.139 (MIT)
1107
1107
  https://github.com/dogsbay/dogsbay.git
1108
1108
 
1109
1109
  Licensed under MIT; the package ships no licence file.
1110
1110
 
1111
1111
  ========================================================================
1112
- @dogsbay/ui@0.2.0-beta.138 (MIT)
1112
+ @dogsbay/ui@0.2.0-beta.139 (MIT)
1113
1113
  https://github.com/dogsbay/dogsbay.git
1114
1114
 
1115
1115
  Licensed under MIT; the package ships no licence file.
@@ -3561,7 +3561,8 @@ ${marker}${title}${marker}`, path, attributesOf(path), includesFor(path, read2),
3561
3561
  for (const f of memo2.deps ?? []) includedProject.add(f);
3562
3562
  } else {
3563
3563
  const keep = memo2 && !templatesOf(p).isTemplatePage(fm);
3564
- if (templatesOf(p).isTemplatePage(fm) && /\bdata\s*[.[]/.test(`${str(fm.title) ?? ""} ${fm.description ?? ""}`)) dataInTitles = true;
3564
+ const titled = `${str(fm.title) ?? ""} ${fm.description ?? ""}`;
3565
+ if (templatesOf(p).isTemplatePage(fm) && /\{[{%]/.test(titled) && /\bdata\s*(\.[A-Za-z_]|\[)/.test(titled)) dataInTitles = true;
3565
3566
  const reads = keep ? (f) => state.scan.read(abs(p), f) : void 0;
3566
3567
  const skippedBefore = state.templateBudget.skipped.titles;
3567
3568
  title = detach(await resolveTitle(str(fm.title) ?? firstH1(await source()) ?? humanize2(slug.split("/").pop() || cfg.name), await source(), p, fm, reads));
@@ -4863,6 +4864,8 @@ function hreflangFor(cfg, unit, all, languages, slug) {
4863
4864
  var CONFIG_FILES = /* @__PURE__ */ new Set(["dogsbay.config.yml", "dogsbay.config.yaml"]);
4864
4865
  var NAV_FILES2 = /(^|\/)nav\.(ya?ml|json)$/;
4865
4866
  var START_ONLY = /(^|\/)(_dogsbay\/search\/|llms(-full)?\.txt$)/;
4867
+ var SITE_WIDE = /^(_dogsbay\/assets\/|_dogsbay\/site\.js$|robots\.txt$|_headers$|_redirects$|sitemap-index\.xml$)/;
4868
+ var UNIT_CSS = /(^|\/)_dogsbay\/site\.css$/;
4866
4869
  async function openDevSession(input, o = {}) {
4867
4870
  let out = /* @__PURE__ */ new Map();
4868
4871
  let units = /* @__PURE__ */ new Map();
@@ -5150,7 +5153,7 @@ async function openDevSession(input, o = {}) {
5150
5153
  for (const prefix of lazy) {
5151
5154
  const u = units.get(prefix);
5152
5155
  for (const key of [...out.keys()]) {
5153
- if (START_ONLY.test(key)) continue;
5156
+ if (START_ONLY.test(key) || SITE_WIDE.test(key) || UNIT_CSS.test(key)) continue;
5154
5157
  if (unitForSitePath(key) === u) out.delete(key);
5155
5158
  }
5156
5159
  for (const s of [...stale]) if (unitForSitePath(s) === u) stale.delete(s);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dogsbay/ssg",
3
- "version": "0.2.0-beta.138",
3
+ "version": "0.2.0-beta.139",
4
4
  "type": "module",
5
5
  "description": "Documentation static site generator for Dogsbay-MD that builds inside Cloudflare Workers and publishes sites that work offline",
6
6
  "license": "Apache-2.0",
@@ -49,38 +49,38 @@
49
49
  "tailwindcss": "^4.3.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "@dogsbay/elements": "0.2.0-beta.138",
53
- "@dogsbay/format-dogsbay-md": "0.2.0-beta.138",
54
- "@dogsbay/format-openapi": "0.2.0-beta.138",
55
- "@dogsbay/format-topicmap": "0.2.0-beta.138",
56
- "@dogsbay/highlight": "0.2.0-beta.138",
57
- "@dogsbay/minja": "0.2.0-beta.138",
58
- "@dogsbay/primitives": "0.2.0-beta.138",
59
- "@dogsbay/render-html": "0.2.0-beta.138",
60
- "@dogsbay/search": "0.2.0-beta.138",
61
- "@dogsbay/serialize-core": "0.2.0-beta.138",
62
- "@dogsbay/site-check": "0.2.0-beta.138",
63
- "@dogsbay/site-files": "0.2.0-beta.138",
64
- "@dogsbay/types": "0.2.0-beta.138"
52
+ "@dogsbay/elements": "0.2.0-beta.139",
53
+ "@dogsbay/format-dogsbay-md": "0.2.0-beta.139",
54
+ "@dogsbay/format-openapi": "0.2.0-beta.139",
55
+ "@dogsbay/format-topicmap": "0.2.0-beta.139",
56
+ "@dogsbay/highlight": "0.2.0-beta.139",
57
+ "@dogsbay/minja": "0.2.0-beta.139",
58
+ "@dogsbay/primitives": "0.2.0-beta.139",
59
+ "@dogsbay/render-html": "0.2.0-beta.139",
60
+ "@dogsbay/search": "0.2.0-beta.139",
61
+ "@dogsbay/serialize-core": "0.2.0-beta.139",
62
+ "@dogsbay/site-check": "0.2.0-beta.139",
63
+ "@dogsbay/site-files": "0.2.0-beta.139",
64
+ "@dogsbay/types": "0.2.0-beta.139"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@axe-core/playwright": "^4.12.1",
68
68
  "@cloudflare/workers-types": "^5.20260921.1",
69
- "@dogsbay/elements": "0.2.0-beta.138",
70
- "@dogsbay/format-dogsbay-md": "0.2.0-beta.138",
71
- "@dogsbay/format-openapi": "0.2.0-beta.138",
72
- "@dogsbay/format-topicmap": "0.2.0-beta.138",
73
- "@dogsbay/highlight": "0.2.0-beta.138",
74
- "@dogsbay/icons": "0.2.0-beta.138",
75
- "@dogsbay/minja": "0.2.0-beta.138",
76
- "@dogsbay/primitives": "0.2.0-beta.138",
77
- "@dogsbay/render-html": "0.2.0-beta.138",
78
- "@dogsbay/search": "0.2.0-beta.138",
79
- "@dogsbay/serialize-core": "0.2.0-beta.138",
80
- "@dogsbay/site-check": "0.2.0-beta.138",
81
- "@dogsbay/site-files": "0.2.0-beta.138",
82
- "@dogsbay/types": "0.2.0-beta.138",
83
- "@dogsbay/ui": "0.2.0-beta.138",
69
+ "@dogsbay/elements": "0.2.0-beta.139",
70
+ "@dogsbay/format-dogsbay-md": "0.2.0-beta.139",
71
+ "@dogsbay/format-openapi": "0.2.0-beta.139",
72
+ "@dogsbay/format-topicmap": "0.2.0-beta.139",
73
+ "@dogsbay/highlight": "0.2.0-beta.139",
74
+ "@dogsbay/icons": "0.2.0-beta.139",
75
+ "@dogsbay/minja": "0.2.0-beta.139",
76
+ "@dogsbay/primitives": "0.2.0-beta.139",
77
+ "@dogsbay/render-html": "0.2.0-beta.139",
78
+ "@dogsbay/search": "0.2.0-beta.139",
79
+ "@dogsbay/serialize-core": "0.2.0-beta.139",
80
+ "@dogsbay/site-check": "0.2.0-beta.139",
81
+ "@dogsbay/site-files": "0.2.0-beta.139",
82
+ "@dogsbay/types": "0.2.0-beta.139",
83
+ "@dogsbay/ui": "0.2.0-beta.139",
84
84
  "@mermanjs/web": "0.7.0",
85
85
  "@playwright/test": "1.61.1",
86
86
  "@types/node": "^22.10.0",