@turnipxenon/pineapple 2.4.31 → 2.4.32

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.
@@ -4,9 +4,9 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Set queryParams based on index and pageSize">
8
- <change afterPath="$PROJECT_DIR$/src/lib/components/navigation_component/index.ts" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/src/lib/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/index.ts" afterDir="false" />
7
+ <list default="true" id="accb6ba2-c343-4f84-ad30-6e2d71eceee5" name="Changes" comment="Export NavigationComponent">
8
+ <change beforePath="$PROJECT_DIR$/src/lib/components/navigation_component/NavigationComponent.svelte" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/navigation_component/NavigationComponent.svelte" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/src/lib/components/navigation_component/PageMeta.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/lib/components/navigation_component/PageMeta.ts" afterDir="false" />
10
10
  </list>
11
11
  <option name="SHOW_DIALOG" value="false" />
12
12
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -85,33 +85,33 @@
85
85
  <option name="hideEmptyMiddlePackages" value="true" />
86
86
  <option name="showLibraryContents" value="true" />
87
87
  </component>
88
- <component name="PropertiesComponent"><![CDATA[{
89
- "keyToString": {
90
- "DefaultHtmlFileTemplate": "HTML File",
91
- "RunOnceActivity.OpenProjectViewOnStart": "true",
92
- "RunOnceActivity.ShowReadmeOnStart": "true",
93
- "WebServerToolWindowFactoryState": "false",
94
- "git-widget-placeholder": "turnip/navigation",
95
- "ignore.virus.scanning.warn.message": "true",
96
- "last_opened_file_path": "C:/Users/Pumpkin/Projects/Web/pineapple/src/lib/components/navigation_component",
97
- "list.type.of.created.stylesheet": "CSS",
98
- "node.js.detected.package.eslint": "true",
99
- "node.js.detected.package.tslint": "true",
100
- "node.js.selected.package.eslint": "(autodetect)",
101
- "node.js.selected.package.tslint": "(autodetect)",
102
- "nodejs_interpreter_path": "node",
103
- "nodejs_package_manager_path": "yarn",
104
- "npm.build.executor": "Run",
105
- "npm.dev (1).executor": "Run",
106
- "npm.dev --open.executor": "Run",
107
- "npm.dev offline.executor": "Run",
108
- "npm.dev-offline.executor": "Run",
109
- "npm.dev.executor": "Run",
110
- "settings.editor.selected.configurable": "preferences.pluginManager",
111
- "ts.external.directory.path": "C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib",
112
- "vue.rearranger.settings.migration": "true"
88
+ <component name="PropertiesComponent">{
89
+ &quot;keyToString&quot;: {
90
+ &quot;DefaultHtmlFileTemplate&quot;: &quot;HTML File&quot;,
91
+ &quot;RunOnceActivity.OpenProjectViewOnStart&quot;: &quot;true&quot;,
92
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
93
+ &quot;WebServerToolWindowFactoryState&quot;: &quot;false&quot;,
94
+ &quot;git-widget-placeholder&quot;: &quot;turnip/navigation&quot;,
95
+ &quot;ignore.virus.scanning.warn.message&quot;: &quot;true&quot;,
96
+ &quot;last_opened_file_path&quot;: &quot;C:/Users/Pumpkin/Projects/Web/pineapple/src/lib/components/navigation_component&quot;,
97
+ &quot;list.type.of.created.stylesheet&quot;: &quot;CSS&quot;,
98
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
99
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
100
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
101
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
102
+ &quot;nodejs_interpreter_path&quot;: &quot;node&quot;,
103
+ &quot;nodejs_package_manager_path&quot;: &quot;yarn&quot;,
104
+ &quot;npm.build.executor&quot;: &quot;Run&quot;,
105
+ &quot;npm.dev (1).executor&quot;: &quot;Run&quot;,
106
+ &quot;npm.dev --open.executor&quot;: &quot;Run&quot;,
107
+ &quot;npm.dev offline.executor&quot;: &quot;Run&quot;,
108
+ &quot;npm.dev-offline.executor&quot;: &quot;Run&quot;,
109
+ &quot;npm.dev.executor&quot;: &quot;Run&quot;,
110
+ &quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;,
111
+ &quot;ts.external.directory.path&quot;: &quot;C:\\Users\\Pumpkin\\Projects\\Web\\pineapple\\node_modules\\typescript\\lib&quot;,
112
+ &quot;vue.rearranger.settings.migration&quot;: &quot;true&quot;
113
113
  }
114
- }]]></component>
114
+ }</component>
115
115
  <component name="RecentsManager">
116
116
  <key name="CopyFile.RECENT_KEYS">
117
117
  <recent name="C:\Users\Pumpkin\Projects\Web\pineapple\src\lib\components\navigation_component" />
@@ -241,15 +241,8 @@
241
241
  <workItem from="1711471654056" duration="635000" />
242
242
  <workItem from="1711472302524" duration="9738000" />
243
243
  <workItem from="1711482094100" duration="5506000" />
244
- <workItem from="1711487798169" duration="92000" />
245
- </task>
246
- <task id="LOCAL-00059" summary="Add data-nosnippet">
247
- <option name="closed" value="true" />
248
- <created>1710305409664</created>
249
- <option name="number" value="00059" />
250
- <option name="presentableId" value="LOCAL-00059" />
251
- <option name="project" value="LOCAL" />
252
- <updated>1710305409664</updated>
244
+ <workItem from="1711487798169" duration="264000" />
245
+ <workItem from="1711488375110" duration="657000" />
253
246
  </task>
254
247
  <task id="LOCAL-00060" summary="Fix wrong link in migrante">
255
248
  <option name="closed" value="true" />
@@ -635,7 +628,15 @@
635
628
  <option name="project" value="LOCAL" />
636
629
  <updated>1711487464414</updated>
637
630
  </task>
638
- <option name="localTasksCounter" value="108" />
631
+ <task id="LOCAL-00108" summary="Export NavigationComponent">
632
+ <option name="closed" value="true" />
633
+ <created>1711487908874</created>
634
+ <option name="number" value="00108" />
635
+ <option name="presentableId" value="LOCAL-00108" />
636
+ <option name="project" value="LOCAL" />
637
+ <updated>1711487908874</updated>
638
+ </task>
639
+ <option name="localTasksCounter" value="109" />
639
640
  <servers />
640
641
  </component>
641
642
  <component name="TypeScriptGeneratedFilesManager">
@@ -693,7 +694,6 @@
693
694
  </option>
694
695
  </component>
695
696
  <component name="VcsManagerConfiguration">
696
- <MESSAGE value="Fix default card postcss style" />
697
697
  <MESSAGE value="Adjust turnip fab button color" />
698
698
  <MESSAGE value="Replace btn-group postcss class with turnip-menu&#10;&#10;There is postcss defined class called btn-group which has styles that have !important, which I accidentally used not knowing it exists, and it overrides whatever styles I apply on my class" />
699
699
  <MESSAGE value="Add external link warning stub" />
@@ -718,6 +718,7 @@
718
718
  <MESSAGE value="Add Navigation control" />
719
719
  <MESSAGE value="Move NavigationControl to a component" />
720
720
  <MESSAGE value="Set queryParams based on index and pageSize" />
721
- <option name="LAST_COMMIT_MESSAGE" value="Set queryParams based on index and pageSize" />
721
+ <MESSAGE value="Export NavigationComponent" />
722
+ <option name="LAST_COMMIT_MESSAGE" value="Export NavigationComponent" />
722
723
  </component>
723
724
  </project>
@@ -4,7 +4,7 @@ import { parsePageMeta } from "./PageMeta";
4
4
  export let title = void 0;
5
5
  export let fileList;
6
6
  export let parentSubpath;
7
- export let compareFn;
7
+ export let compareFn = void 0;
8
8
  export let pageSize = 5;
9
9
  export let currentIndex = 0;
10
10
  const pageFlatList = parsePageMeta(fileList, compareFn);
@@ -13,19 +13,19 @@ $:
13
13
  </script>
14
14
 
15
15
  <div class="navigation-wrapper">
16
+ {#if (title)}
17
+ <Card>
18
+ <h1 slot="content" class="default-card navigation-title">
19
+ {title}
20
+ </h1>
21
+ </Card>
22
+ {/if}
16
23
 
17
24
  <NavigationControl bind:currentIndex={currentIndex}
18
25
  bind:contentLength={pageFlatList.length}
19
26
  bind:pageSize={pageSize}></NavigationControl>
20
27
 
21
28
  <div class="navigation-component">
22
- {#if (title)}
23
- <Card>
24
- <h1 slot="content" class="default-card navigation-title">
25
- {title}
26
- </h1>
27
- </Card>
28
- {/if}
29
29
  <!-- all the misc routes-->
30
30
  {#each visiblePages as pageMeta}
31
31
  {@const fullPath=`${parentSubpath}${pageMeta.relativeLink}`}
@@ -7,7 +7,7 @@ declare const __propDef: {
7
7
  /**
8
8
  * Should include a slash before and after the path
9
9
  */ parentSubpath: string;
10
- compareFn: undefined | ParsePageMetaCompareFn;
10
+ compareFn?: undefined | ParsePageMetaCompareFn;
11
11
  pageSize?: number | undefined;
12
12
  currentIndex?: number | undefined;
13
13
  };
@@ -12,6 +12,7 @@ export interface PageMeta {
12
12
  datePublished?: string;
13
13
  lastUpdated?: string;
14
14
  shouldGroup?: boolean;
15
+ shouldHide?: boolean;
15
16
  }
16
17
  /**
17
18
  * todo: doc
@@ -44,25 +44,32 @@ export const parsePageMeta = (fileList, compareFn) => {
44
44
  // let metadata : undefined | Map<string, string | string[]>;
45
45
  if (body.startsWith("<!--")) {
46
46
  // todo: absorb more metadata
47
- const metadata = JSON.parse(body.slice("<!--".length, body.indexOf("-->")));
48
- meta.title = metadata["title"] ?? meta.title;
49
- meta.tags = metadata["tags"];
50
- meta.description = metadata["description"];
51
- meta.datePublished = metadata["datePublished"];
52
- meta.lastUpdated = metadata["lastUpdated"];
53
- meta.shouldGroup = metadata["shouldGroup"];
54
- meta.image = metadata["image"];
55
- if (meta.image) {
56
- meta.imageAlt = metadata["imageAlt"];
57
- if (!meta.imageAlt) {
58
- console.warn(`Accessibility issues: image alt missing for image ${meta.image}`);
47
+ try {
48
+ const metadata = JSON.parse(body.slice("<!--".length, body.indexOf("-->")));
49
+ meta.title = metadata["title"] ?? meta.title;
50
+ meta.tags = metadata["tags"];
51
+ meta.description = metadata["description"];
52
+ meta.datePublished = metadata["datePublished"];
53
+ meta.lastUpdated = metadata["lastUpdated"];
54
+ meta.shouldGroup = metadata["shouldGroup"];
55
+ meta.shouldHide = metadata["shouldHide"];
56
+ meta.image = metadata["image"];
57
+ if (meta.image) {
58
+ meta.imageAlt = metadata["imageAlt"];
59
+ if (!meta.imageAlt) {
60
+ console.warn(`Accessibility issues: image alt missing for image ${meta.image}`);
61
+ }
59
62
  }
60
63
  }
64
+ catch (e) {
65
+ console.error(`Error at ${meta.relativeLink}: ${e}`);
66
+ }
61
67
  }
62
68
  pageFlatList.push(meta);
63
69
  }
64
70
  pageFlatList.sort((a, b) => a.relativeLink.localeCompare(b.relativeLink));
65
71
  // find groupings
72
+ // grouping should be BEFORE the external sort
66
73
  // todo: we don't even have use for this yet!
67
74
  // pageFlatList.forEach(p => {
68
75
  // if (!findPageMetaParent(pageGroupedList, p)) {
@@ -21,7 +21,7 @@ export const options = {
21
21
  app: ({ head, body, assets, nonce, env }) => "<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width\" />\n\t\t" + head + "\n\t</head>\n\n\t<body data-sveltekit-preload-data=\"hover\" data-theme=\"crimson\">\n\t\t<div style=\"display: contents\" class=\"h-full overflow-hidden\">" + body + "</div>\n\t</body>\n</html>\n",
22
22
  error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
23
23
  },
24
- version_hash: "28prrw"
24
+ version_hash: "19q2v79"
25
25
  };
26
26
 
27
27
  export async function get_hooks() {
@@ -4,7 +4,7 @@ import { parsePageMeta } from "./PageMeta";
4
4
  export let title = void 0;
5
5
  export let fileList;
6
6
  export let parentSubpath;
7
- export let compareFn;
7
+ export let compareFn = void 0;
8
8
  export let pageSize = 5;
9
9
  export let currentIndex = 0;
10
10
  const pageFlatList = parsePageMeta(fileList, compareFn);
@@ -13,19 +13,19 @@ $:
13
13
  </script>
14
14
 
15
15
  <div class="navigation-wrapper">
16
+ {#if (title)}
17
+ <Card>
18
+ <h1 slot="content" class="default-card navigation-title">
19
+ {title}
20
+ </h1>
21
+ </Card>
22
+ {/if}
16
23
 
17
24
  <NavigationControl bind:currentIndex={currentIndex}
18
25
  bind:contentLength={pageFlatList.length}
19
26
  bind:pageSize={pageSize}></NavigationControl>
20
27
 
21
28
  <div class="navigation-component">
22
- {#if (title)}
23
- <Card>
24
- <h1 slot="content" class="default-card navigation-title">
25
- {title}
26
- </h1>
27
- </Card>
28
- {/if}
29
29
  <!-- all the misc routes-->
30
30
  {#each visiblePages as pageMeta}
31
31
  {@const fullPath=`${parentSubpath}${pageMeta.relativeLink}`}
@@ -7,7 +7,7 @@ declare const __propDef: {
7
7
  /**
8
8
  * Should include a slash before and after the path
9
9
  */ parentSubpath: string;
10
- compareFn: undefined | ParsePageMetaCompareFn;
10
+ compareFn?: undefined | ParsePageMetaCompareFn;
11
11
  pageSize?: number | undefined;
12
12
  currentIndex?: number | undefined;
13
13
  };
@@ -12,6 +12,7 @@ export interface PageMeta {
12
12
  datePublished?: string;
13
13
  lastUpdated?: string;
14
14
  shouldGroup?: boolean;
15
+ shouldHide?: boolean;
15
16
  }
16
17
  /**
17
18
  * todo: doc
@@ -44,25 +44,32 @@ export const parsePageMeta = (fileList, compareFn) => {
44
44
  // let metadata : undefined | Map<string, string | string[]>;
45
45
  if (body.startsWith("<!--")) {
46
46
  // todo: absorb more metadata
47
- const metadata = JSON.parse(body.slice("<!--".length, body.indexOf("-->")));
48
- meta.title = metadata["title"] ?? meta.title;
49
- meta.tags = metadata["tags"];
50
- meta.description = metadata["description"];
51
- meta.datePublished = metadata["datePublished"];
52
- meta.lastUpdated = metadata["lastUpdated"];
53
- meta.shouldGroup = metadata["shouldGroup"];
54
- meta.image = metadata["image"];
55
- if (meta.image) {
56
- meta.imageAlt = metadata["imageAlt"];
57
- if (!meta.imageAlt) {
58
- console.warn(`Accessibility issues: image alt missing for image ${meta.image}`);
47
+ try {
48
+ const metadata = JSON.parse(body.slice("<!--".length, body.indexOf("-->")));
49
+ meta.title = metadata["title"] ?? meta.title;
50
+ meta.tags = metadata["tags"];
51
+ meta.description = metadata["description"];
52
+ meta.datePublished = metadata["datePublished"];
53
+ meta.lastUpdated = metadata["lastUpdated"];
54
+ meta.shouldGroup = metadata["shouldGroup"];
55
+ meta.shouldHide = metadata["shouldHide"];
56
+ meta.image = metadata["image"];
57
+ if (meta.image) {
58
+ meta.imageAlt = metadata["imageAlt"];
59
+ if (!meta.imageAlt) {
60
+ console.warn(`Accessibility issues: image alt missing for image ${meta.image}`);
61
+ }
59
62
  }
60
63
  }
64
+ catch (e) {
65
+ console.error(`Error at ${meta.relativeLink}: ${e}`);
66
+ }
61
67
  }
62
68
  pageFlatList.push(meta);
63
69
  }
64
70
  pageFlatList.sort((a, b) => a.relativeLink.localeCompare(b.relativeLink));
65
71
  // find groupings
72
+ // grouping should be BEFORE the external sort
66
73
  // todo: we don't even have use for this yet!
67
74
  // pageFlatList.forEach(p => {
68
75
  // if (!findPageMetaParent(pageGroupedList, p)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@turnipxenon/pineapple",
3
3
  "description": "personal package for base styling for other personal projects",
4
- "version": "2.4.31",
4
+ "version": "2.4.32",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
7
7
  "build": "npm run check-requirements && vite build && yarn package",
@@ -5,11 +5,13 @@
5
5
 
6
6
  export let title: string | undefined = undefined;
7
7
  export let fileList: Record<string, unknown>;
8
+
8
9
  /**
9
10
  * Should include a slash before and after the path
10
11
  */
11
12
  export let parentSubpath: string;
12
- export let compareFn: undefined | ParsePageMetaCompareFn;
13
+
14
+ export let compareFn: undefined | ParsePageMetaCompareFn = undefined;
13
15
  export let pageSize = 5;
14
16
  export let currentIndex = 0;
15
17
 
@@ -19,19 +21,19 @@
19
21
  </script>
20
22
 
21
23
  <div class="navigation-wrapper">
24
+ {#if (title)}
25
+ <Card>
26
+ <h1 slot="content" class="default-card navigation-title">
27
+ {title}
28
+ </h1>
29
+ </Card>
30
+ {/if}
22
31
 
23
32
  <NavigationControl bind:currentIndex={currentIndex}
24
33
  bind:contentLength={pageFlatList.length}
25
34
  bind:pageSize={pageSize}></NavigationControl>
26
35
 
27
36
  <div class="navigation-component">
28
- {#if (title)}
29
- <Card>
30
- <h1 slot="content" class="default-card navigation-title">
31
- {title}
32
- </h1>
33
- </Card>
34
- {/if}
35
37
  <!-- all the misc routes-->
36
38
  {#each visiblePages as pageMeta}
37
39
  {@const fullPath=`${parentSubpath}${pageMeta.relativeLink}`}
@@ -18,6 +18,7 @@ export interface PageMeta {
18
18
  datePublished?: string;
19
19
  lastUpdated?: string;
20
20
  shouldGroup?: boolean;
21
+ shouldHide?: boolean;
21
22
  }
22
23
 
23
24
  /**
@@ -80,20 +81,25 @@ export const parsePageMeta = (fileList: Record<string, unknown>,
80
81
  // let metadata : undefined | Map<string, string | string[]>;
81
82
  if (body.startsWith("<!--")) {
82
83
  // todo: absorb more metadata
83
- const metadata = JSON.parse(body.slice("<!--".length, body.indexOf("-->")));
84
- meta.title = metadata["title"] ?? meta.title;
85
- meta.tags = metadata["tags"];
86
- meta.description = metadata["description"];
87
- meta.datePublished = metadata["datePublished"];
88
- meta.lastUpdated = metadata["lastUpdated"];
89
- meta.shouldGroup = metadata["shouldGroup"] as boolean;
90
-
91
- meta.image = metadata["image"];
92
- if (meta.image) {
93
- meta.imageAlt = metadata["imageAlt"];
94
- if (!meta.imageAlt) {
95
- console.warn(`Accessibility issues: image alt missing for image ${meta.image}`);
84
+ try {
85
+ const metadata = JSON.parse(body.slice("<!--".length, body.indexOf("-->")));
86
+ meta.title = metadata["title"] ?? meta.title;
87
+ meta.tags = metadata["tags"];
88
+ meta.description = metadata["description"];
89
+ meta.datePublished = metadata["datePublished"];
90
+ meta.lastUpdated = metadata["lastUpdated"];
91
+ meta.shouldGroup = metadata["shouldGroup"] as boolean;
92
+ meta.shouldHide = metadata["shouldHide"] as boolean;
93
+
94
+ meta.image = metadata["image"];
95
+ if (meta.image) {
96
+ meta.imageAlt = metadata["imageAlt"];
97
+ if (!meta.imageAlt) {
98
+ console.warn(`Accessibility issues: image alt missing for image ${meta.image}`);
99
+ }
96
100
  }
101
+ } catch (e) {
102
+ console.error(`Error at ${meta.relativeLink}: ${e}`);
97
103
  }
98
104
  }
99
105
 
@@ -103,6 +109,7 @@ export const parsePageMeta = (fileList: Record<string, unknown>,
103
109
  pageFlatList.sort((a, b) => a.relativeLink.localeCompare(b.relativeLink));
104
110
 
105
111
  // find groupings
112
+ // grouping should be BEFORE the external sort
106
113
  // todo: we don't even have use for this yet!
107
114
  // pageFlatList.forEach(p => {
108
115
  // if (!findPageMetaParent(pageGroupedList, p)) {