@alauda/doom 2.5.0 → 2.5.1

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.
@@ -58,23 +58,29 @@ export const BreadCrumb = () => {
58
58
  }
59
59
  const buildInfoGroups = [];
60
60
  for (const [base, items] of Object.entries(rawBuildInfo)) {
61
- const id = base
62
- .replace('alauda-build-of-', '')
63
- .replace('alauda-', '')[0];
64
- let group = buildInfoGroups.find((g) => g.id === id);
65
- if (!group) {
66
- group = { id, items: [] };
67
- buildInfoGroups.push(group);
68
- }
61
+ let buildInfo;
69
62
  if (isBuildInfoItem(items)) {
70
- group.items.push(items);
63
+ buildInfo = items;
71
64
  }
72
65
  else {
73
66
  const latest = Object.values(items).at(-1);
74
67
  if (latest) {
75
- group.items.push(latest);
68
+ buildInfo = latest;
76
69
  }
77
70
  }
71
+ if (!buildInfo) {
72
+ continue;
73
+ }
74
+ const id = (buildInfo.displayName?.en || base)
75
+ .toLowerCase()
76
+ .replace(/^alauda[\s-]+/, '')
77
+ .replace(/^build[\s-]+of[\s-]+/, '')[0];
78
+ let group = buildInfoGroups.find((g) => g.id === id);
79
+ if (!group) {
80
+ group = { id, items: [] };
81
+ buildInfoGroups.push(group);
82
+ }
83
+ group.items.push(buildInfo);
78
84
  }
79
85
  setBuildInfoGroups(buildInfoGroups.sort((a, b) => a.id.localeCompare(b.id)));
80
86
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/doom",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "type": "module",
5
5
  "description": "Doctor Doom making docs.",
6
6
  "repository": {
@@ -5,19 +5,15 @@ body:has(.container) :global {
5
5
  }
6
6
 
7
7
  .container {
8
- column-count: 5;
8
+ column-count: 3;
9
9
  column-gap: 1lh;
10
10
 
11
- @media (max-width: 1366px) {
12
- column-count: 4;
13
- }
14
-
15
11
  @media (max-width: 1024px) {
16
- column-count: 3;
12
+ column-count: 2;
17
13
  }
18
14
 
19
15
  @media (max-width: 768px) {
20
- column-count: 2;
16
+ column-count: 1;
21
17
  }
22
18
 
23
19
  h2 {