Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/improve-sidebar-navigation-accessibility.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/rotten-coins-teach.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/site/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# doctocat-nextjs-site

## 0.0.12

### Patch Changes

- Updated dependencies [[`b75584e`](https://github.com/primer/doctocat-nextjs/commit/b75584edb6936a70ea94925fc743989422cc3d9a), [`a06099d`](https://github.com/primer/doctocat-nextjs/commit/a06099d65d36bdb361fc9a20b2b811990bb6d353)]:
- @primer/doctocat-nextjs@0.8.0

## 0.0.11

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/site/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doctocat-nextjs-site",
"version": "0.0.11",
"version": "0.0.12",
"private": true,
"description": "Documentation theme",
"type": "module",
Expand All @@ -21,7 +21,7 @@
},
"homepage": "https://github.com/primer/doctocat-nextjs#readme",
"dependencies": {
"@primer/doctocat-nextjs": "^0.7.0",
"@primer/doctocat-nextjs": "^0.8.0",
"@primer/octicons-react": "19.15.1",
"eslint-config-next": "15.5.7",
"next": "15.5.7",
Expand Down
29 changes: 21 additions & 8 deletions packages/theme/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
# @primer/doctocat-nextjs

## 0.8.0

### Minor Changes

- [#73](https://github.com/primer/doctocat-nextjs/pull/73) [`a06099d`](https://github.com/primer/doctocat-nextjs/commit/a06099d65d36bdb361fc9a20b2b811990bb6d353) Thanks [@danielguillan](https://github.com/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](https://github.com/primer/doctocat-nextjs/pull/68) [`b75584e`](https://github.com/primer/doctocat-nextjs/commit/b75584edb6936a70ea94925fc743989422cc3d9a) Thanks [@janmaarten-a11y](https://github.com/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`.

## 0.7.0

### Minor Changes

- [#65](https://github.com/primer/doctocat-nextjs/pull/65) [`dc680ec`](https://github.com/primer/doctocat-nextjs/commit/dc680ec51605bd7a40dedc71cd3bb107632035dd) Thanks [@rezrah](https://github.com/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
Expand Down Expand Up @@ -63,7 +83,6 @@
```

- [#48](https://github.com/primer/doctocat-nextjs/pull/48) [`ce73c24`](https://github.com/primer/doctocat-nextjs/commit/ce73c24b2e4e924667bf7446a504bd88d8f2ccf0) Thanks [@rezrah](https://github.com/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](https://github.com/primer/doctocat-nextjs/pull/50) [`5d67989`](https://github.com/primer/doctocat-nextjs/commit/5d679895408c1a58342419692db4234dfddefd80) Thanks [@rezrah](https://github.com/rezrah)! - Add `menu-position` frontmatter support for custom sidebar navigation ordering
Expand All @@ -81,7 +100,6 @@
### Patch Changes

- [#41](https://github.com/primer/doctocat-nextjs/pull/41) [`e1ffb3a`](https://github.com/primer/doctocat-nextjs/commit/e1ffb3a630c51316a19e25869f731b4ef3660d2b) Thanks [@danielguillan](https://github.com/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.
Expand All @@ -105,7 +123,6 @@
### Minor Changes

- [#30](https://github.com/primer/doctocat-nextjs/pull/30) [`cdcb65e`](https://github.com/primer/doctocat-nextjs/commit/cdcb65e087d647a6d61c87d9122f105dcda64e35) Thanks [@joshfarrant](https://github.com/joshfarrant)! - - Arbitrary links can now be added to the sidebar and header using the `Theme` component's `headerLinks` and `sidebarLinks` props.

- Updated the header navigation to more closely visually align it with the existing Primer docs navigation.
- Removed `_meta.global.ts` and instead directly pass header and sidebar links into the Doctocat `Theme` component.

Expand Down Expand Up @@ -135,7 +152,6 @@
### Patch Changes

- [#34](https://github.com/primer/doctocat-nextjs/pull/34) [`ccf198c`](https://github.com/primer/doctocat-nextjs/commit/ccf198cca25b1f021c5ae78b8e2760c141a77dcc) Thanks [@rezrah](https://github.com/rezrah)! - Collection of UI bugfixes:

- Sidebar offset added to prevent links being trapped under fixed header
- Narrow viewport overflow bug fixed
- Table of contents presentation fixed on narrow viewport, and has improved presentation on wider breakpoints.
Expand Down Expand Up @@ -184,7 +200,6 @@
### Minor Changes

- [#20](https://github.com/primer/doctocat-nextjs/pull/20) [`be8bc6a`](https://github.com/primer/doctocat-nextjs/commit/be8bc6af733ba40bdd4393b876b2653017d7e846) Thanks [@rezrah](https://github.com/rezrah)! - Dropped support for Next.js Pages router in favor of App Router + Nextra v4

- [Read the migration guide from `v0.1.0` to `v0.2.0`](https://github.com/primer/doctocat-nextjs/blob/main/migration-guides/v0.2.0-app-router.md)

## 0.1.0
Expand All @@ -194,7 +209,6 @@
- [#18](https://github.com/primer/doctocat-nextjs/pull/18) [`bfe68b1`](https://github.com/primer/doctocat-nextjs/commit/bfe68b14e8e3b4383ea41dcbf47373df8a130567) Thanks [@rezrah](https://github.com/rezrah)! - Upgraded internal framework to [Nextra v3](https://the-guild.dev/blog/nextra-3).

To migrate Doctocat to this release, follow these steps:

1. Install the latest version `npm i @primer/doctocat-nextjs@0.1.0`
2. Rename your `next.config.js` to be `next.config.mjs`. Add `type="module"` to your `package.json` and update the file contents to match the following:

Expand Down Expand Up @@ -270,7 +284,6 @@
- [`6f21970`](https://github.com/primer/doctocat-nextjs/commit/6f21970c74f7635be89fc4cd20376d7fe5ca35e7) Thanks [@rezrah](https://github.com/rezrah)! - Switch hero image order with description and reduce `h2` block start margin

- [#6](https://github.com/primer/doctocat-nextjs/pull/6) [`afd4e17`](https://github.com/primer/doctocat-nextjs/commit/afd4e1762f6294a14942d415c693319a874cd3fb) Thanks [@rezrah](https://github.com/rezrah)! - - Add MDX to HTML overrides mechanism and apply to headings and anchors

- Added anchor links to headings to match current functionality on primer.style

- [`b49f218`](https://github.com/primer/doctocat-nextjs/commit/b49f218e9bbc2de720476e21888956bee6081967) Thanks [@rezrah](https://github.com/rezrah)! - Removed sidebar links and added skip to main content a11y link
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@primer/doctocat-nextjs",
"version": "0.7.0",
"version": "0.8.0",
"description": "A Next.js theme for building Primer documentation sites",
"main": "index.js",
"type": "module",
Expand Down
Loading