Skip to content

Releases: primer/doctocat-nextjs

@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

@primer/doctocat-nextjs@0.5.5

26 Jun 13:27
e19cb13

Choose a tag to compare

Patch Changes

@primer/doctocat-nextjs@0.5.4

25 Jun 15:31
25aa66a

Choose a tag to compare

Patch Changes

  • #51 4c76c4f Thanks @rezrah! - Add auto-collapsed React code blocks for large code snippets. This feature only applies to code fences with the jsx live language identifiers.

    E.g.

    <>Your code</>
  • #48 ce73c24 Thanks @rezrah! - - Fix inline code font-size in markdown headings. Now inherits size used in the heading.

    • Increased spacing below React code blocks, which was previously too small.
  • #50 5d67989 Thanks @rezrah! - Add menu-position frontmatter support for custom sidebar navigation ordering

@primer/doctocat-nextjs@0.5.3

20 Jun 13:58
7ec8857

Choose a tag to compare

Patch Changes

  • #43 1b15bdf Thanks @rezrah! - Fix lack of basePath support on index cards. href now prepends the basePath.

  • #46 2b99ba6 Thanks @rezrah! - Prepend basePath from next.config.js to paths in Doctocat UI components, where it would previously not resolve correctly.

@primer/doctocat-nextjs@0.5.2

16 Jun 18:51
137c64e

Choose a tag to compare

Patch Changes

  • #41 e1ffb3a Thanks @danielguillan! - - Updated sidebar styles.

    • Added active header link as sidebar heading.
    • Made active header the root item of breadcrumbs, if available.
    • Made sidebar group headlines link to the index page.
  • #39 9090a35 Thanks @danielguillan! - Updated index pages to use a grid of Cards with thumbnails.

    Use thumbnail and thumbnail_darkMode to set custom thumbnail URLs for light and dark color modes respectively.

  • #38 e950c9a Thanks @danielguillan! - Updated Primer Brand library to v0.54.0

  • #42 c9c2d16 Thanks @rezrah! - Added placeholder images to the Index page cards, where thumbnail and thumbnail_darkMode aren't provided through the frontmatter

@primer/doctocat-nextjs@0.5.1

06 May 08:54
bf8f75a

Choose a tag to compare

Patch Changes

  • #35 d0c5bd4 Thanks @rezrah! - Enable support for trailingSlash: true in next.config.js