@primer/doctocat-nextjs 0.0.0-20250626090643 → 0.0.0-20250626094237
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
|
@@ -152,10 +152,11 @@ export function Theme({pageMap, children}: ThemeProps) {
|
|
|
152
152
|
{activePath.reduce((acc, item, index, items) => {
|
|
153
153
|
// Skip duplicate item for index pages without tab-label
|
|
154
154
|
if (
|
|
155
|
-
index
|
|
156
|
-
|
|
155
|
+
index < items.length - 1 &&
|
|
156
|
+
items[index + 1].name === 'index' &&
|
|
157
|
+
item.route === items[index + 1].route &&
|
|
157
158
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
158
|
-
!
|
|
159
|
+
!items[index + 1].frontMatter?.['tab-label']
|
|
159
160
|
) {
|
|
160
161
|
return acc
|
|
161
162
|
}
|
|
@@ -173,8 +174,6 @@ export function Theme({pageMap, children}: ThemeProps) {
|
|
|
173
174
|
sx={{
|
|
174
175
|
textTransform: 'capitalize',
|
|
175
176
|
color: 'var(--brand-InlineLink-color-rest)',
|
|
176
|
-
pointerEvents: isLastItem ? 'none' : undefined,
|
|
177
|
-
cursor: isLastItem ? 'default' : undefined,
|
|
178
177
|
}}
|
|
179
178
|
>
|
|
180
179
|
{itemTitle.replace(/-/g, ' ')}
|