Releases: primer/doctocat-nextjs
@primer/doctocat-nextjs@0.10.0
Minor Changes
-
#99
1b72c82Thanks @rezrah! - Updated dependencies to latest versions.@primer/react38.3.0 → 38.18.0@primer/octicons-react19.15.1 → 19.23.1@next/mdxandnext16.1.6 → 16.2.2framer-motion12.23.24 → 12.38.0- Replaced
Hero.Imagewith standaloneImagefrom@primer/react-brandfor compatibility with 0.65.1
-
#98
a4e4e89Thanks @rezrah! - Added support for generating llms.txt at build time. This file will make your site's content easily discoverable by Agentic AI tools like GitHub Copilot.To enable this feature, create
app/llms.txt/route.ts:import {generateLLMsTxt} from '@primer/doctocat-nextjs/llms' export const dynamic = 'force-static' export async function GET() { const content = await generateLLMsTxt() return new Response(content, { headers: {'Content-Type': 'text/plain; charset=utf-8'}, }) }
Important: Ensure that
title,descriptionandkeywordsfields are populated in your content's frontmatter.
@primer/doctocat-nextjs@0.9.1
Patch Changes
-
#92
bc694faThanks @rezrah! - Increase contrast of the "Skip to main content" link where Primer React link color rules were overriding component-level ones. -
#91
af9b369Thanks @danielguillan! - [a11y] Fix search results not announced by screen readers and dropdown overflowing viewport at small sizes -
#94
dcd8034Thanks @rezrah! - Increase contrast of allcode spansyntax highlights in code fences on light mode.Before: 4.31:1 AA (fails WCAG AA)
After: 5.03:1 AA (passes WCAG AA)
@primer/doctocat-nextjs@0.9.0
Minor Changes
- #87
7a28f1dThanks @rezrah! - Upgrades Next.js and Nextra.- Next.js version >= v16.x is now required. v15.x is no longer supported.
nextraversion is now4.6.x
Patch Changes
- #90
402470eThanks @danielguillan! - Fix inline code styling inside headings to avoid background overlap when headings wrap.
@primer/doctocat-nextjs@0.8.1
Patch Changes
-
#83
3c3b1a9Thanks @danielguillan! - Remove underlines from header links -
#80
772d8deThanks @danielguillan! - Improves accessibility of anchor links by adding an underline
@primer/doctocat-nextjs@0.8.0
Minor Changes
-
#73
a06099dThanks @danielguillan! - Add React 19 supportThis update is backwards compatible with React 18. However, it upgrades
@primer/reactto v38, which includes breaking changes such as the removal of theBoxcomponent andsxprop. Projects using this theme may need to update their code accordingly.- Updated React peer dependency to support React 19
- Updated @primer/react from v37.11.2 to v38.3.0
- Updated
@primer/react-brandfrom v0.54.0 to v0.60.1 - Updated
framer-motionfrom v12.4.0 to v12.23.24 - Updated
react-focus-onfrom v3.9.4 to v3.10.0 - Migrated
Labelcomponents toTokenfor React 19 compatibility - Fixed type errors in
ReactCodeBlockandgetRelatedPagesfor stricter React 19 types - Added explicit
as="button"toIconButtonandas="input"toTextInputcomponents - Updated Next.js and related packages from v15.5.2 to v15.5.7
Patch Changes
- #68
b75584eThanks @janmaarten-a11y! - Improve screen reader accessibility by updating sidebar navigation heading hierarchy. The sidebar title now uses a semantic<Heading>component with visually hidden text to clarify it's a navigation area, and is properly connected to the<NavList>viaaria-labelledby.
@primer/doctocat-nextjs@0.7.0
Minor Changes
-
#65
dc680ecThanks @rezrah! - Updated Next.js compatibility to v15.5.x, Nextra to v4, and fix React code block rendering-
Next.js v15.5.2: Upgraded to latest stable version across all workspaces
-
Nextra v4 compatibility: Updated type definitions for
ReactNodetitles -
Fixed code block rendering: Added client-side rendering for interactive code examples to handle React lazy components properly
Next.js v15.4+ changed how lazy components render on the server, breaking interactive code blocks. This update uses client-side code snippet extraction to convert lazy components to clean code strings for the live editor, preventing hydration mismatches and preserving existing behavior.
-
Improved 404 page experience: New 404 page to replace default Next.js version. Also removed stray 0 in top-left.
-
@primer/doctocat-nextjs@0.6.0
@primer/doctocat-nextjs@0.5.8
@primer/doctocat-nextjs@0.5.7
@primer/doctocat-nextjs@0.5.6
Patch Changes
-
#56
e6a55faThanks @danielguillan! - Updated theme switcher aria label -
#54
a57f42fThanks @danielguillan! - Fixed a bug that caused breadcrumbs to display an incorrect title for pages with tabs