@primer/doctocat-nextjs 0.0.0-20250626094237 → 0.0.0-20250626095112

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.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @primer/doctocat-nextjs
2
2
 
3
- ## 0.0.0-20250626094237
3
+ ## 0.0.0-20250626095112
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Fake entry to force publishing
8
8
 
9
- ## 0.0.0-20250626094236
9
+ ## 0.0.0-20250626095110
10
10
 
11
11
  ### Patch Changes
12
12
 
@@ -150,13 +150,15 @@ export function Theme({pageMap, children}: ThemeProps) {
150
150
  </Breadcrumbs.Item>
151
151
  )}
152
152
  {activePath.reduce((acc, item, index, items) => {
153
+ const nextItem = items[index + 1]
154
+
153
155
  // Skip duplicate item for index pages without tab-label
154
156
  if (
155
157
  index < items.length - 1 &&
156
- items[index + 1].name === 'index' &&
157
- item.route === items[index + 1].route &&
158
+ nextItem.name === 'index' &&
159
+ item.route === nextItem.route &&
158
160
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
159
- !items[index + 1].frontMatter?.['tab-label']
161
+ !nextItem.frontMatter?.['tab-label']
160
162
  ) {
161
163
  return acc
162
164
  }
@@ -168,7 +170,7 @@ export function Theme({pageMap, children}: ThemeProps) {
168
170
  acc.push(
169
171
  <Breadcrumbs.Item
170
172
  as={NextLink}
171
- key={`${item.name}-${index}`}
173
+ key={item.name}
172
174
  href={item.route}
173
175
  selected={isLastItem}
174
176
  sx={{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/doctocat-nextjs",
3
- "version": "0.0.0-20250626094237",
3
+ "version": "0.0.0-20250626095112",
4
4
  "description": "A Next.js theme for building Primer documentation sites",
5
5
  "main": "index.js",
6
6
  "type": "module",