Skip to content

Releases: primer/doctocat-nextjs

@primer/doctocat-nextjs@0.10.0

03 Apr 20:06
b7a6c1b

Choose a tag to compare

Minor Changes

  • #99 1b72c82 Thanks @rezrah! - Updated dependencies to latest versions.

    • @primer/react 38.3.0 → 38.18.0
    • @primer/octicons-react 19.15.1 → 19.23.1
    • @next/mdx and next 16.1.6 → 16.2.2
    • framer-motion 12.23.24 → 12.38.0
    • Replaced Hero.Image with standalone Image from @primer/react-brand for compatibility with 0.65.1
  • #98 a4e4e89 Thanks @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, description and keywords fields are populated in your content's frontmatter.

@primer/doctocat-nextjs@0.9.1

20 Feb 11:01
2332077

Choose a tag to compare

Patch Changes

  • #92 bc694fa Thanks @rezrah! - Increase contrast of the "Skip to main content" link where Primer React link color rules were overriding component-level ones.

  • #91 af9b369 Thanks @danielguillan! - [a11y] Fix search results not announced by screen readers and dropdown overflowing viewport at small sizes

  • #94 dcd8034 Thanks @rezrah! - Increase contrast of all code span syntax 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

16 Feb 23:51
8d580c4

Choose a tag to compare

Minor Changes

  • #87 7a28f1d Thanks @rezrah! - Upgrades Next.js and Nextra.
    • Next.js version >= v16.x is now required. v15.x is no longer supported.
    • nextra version is now 4.6.x

Patch Changes

  • #90 402470e Thanks @danielguillan! - Fix inline code styling inside headings to avoid background overlap when headings wrap.

@primer/doctocat-nextjs@0.8.1

21 Jan 13:22
3ab3404

Choose a tag to compare

Patch Changes

@primer/doctocat-nextjs@0.8.0

16 Dec 14:21
19b1c22

Choose a tag to compare

Minor Changes

  • #73 a06099d Thanks @danielguillan! - Add React 19 support

    This update is backwards compatible with React 18. However, it upgrades @primer/react to v38, which includes breaking changes such as the removal of the Box component and sx prop. 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-brand from v0.54.0 to v0.60.1
    • Updated framer-motion from v12.4.0 to v12.23.24
    • Updated react-focus-on from v3.9.4 to v3.10.0
    • Migrated Label components to Token for React 19 compatibility
    • Fixed type errors in ReactCodeBlock and getRelatedPages for stricter React 19 types
    • Added explicit as="button" to IconButton and as="input" to TextInput components
    • Updated Next.js and related packages from v15.5.2 to v15.5.7

Patch Changes

  • #68 b75584e Thanks @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> via aria-labelledby.

@primer/doctocat-nextjs@0.7.0

04 Sep 16:41
89d15e1

Choose a tag to compare

Minor Changes

  • #65 dc680ec Thanks @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 ReactNode titles

    • 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

18 Jul 11:48
afbfe06

Choose a tag to compare

Minor Changes

  • #63 9a090ee Thanks @rezrah! - Moves @primer/react-brand to a peer-dependency.

    This change prevents a mismatch of versions between Doctocat and the project using it. Going forward, the latter will be preferred.

@primer/doctocat-nextjs@0.5.8

07 Jul 13:40
e425064

Choose a tag to compare

Patch Changes

  • #59 c24a5b9 Thanks @danielguillan! - Switched sidebar navigation and content document order for improved accessibility

  • #61 1446089 Thanks @rezrah! - React code previews now support dot-notation in component names. E.g. Hero.Image.

@primer/doctocat-nextjs@0.5.7

27 Jun 14:10
a7c5bf3

Choose a tag to compare

Patch Changes

  • ba3188c Thanks @rezrah! - Switch to using native instead of for header URLs, which prevents prefetching-related errors.

@primer/doctocat-nextjs@0.5.6

27 Jun 12:54
9ed81f1

Choose a tag to compare

Patch Changes