@primer/doctocat-nextjs 0.0.0-20251128093545 → 0.0.0-20251203114510
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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @primer/doctocat-nextjs
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20251203114510
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Fake entry to force publishing
|
|
8
8
|
|
|
9
|
-
## 0.0.0-
|
|
9
|
+
## 0.0.0-20251203114508
|
|
10
10
|
|
|
11
11
|
### Patch Changes
|
|
12
12
|
|
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
### Minor Changes
|
|
18
18
|
|
|
19
19
|
- [#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
|
|
20
|
-
|
|
21
20
|
- **Next.js v15.5.2**: Upgraded to latest stable version across all workspaces
|
|
22
21
|
- **Nextra v4 compatibility**: Updated type definitions for `ReactNode` titles
|
|
23
22
|
- **Fixed code block rendering**: Added client-side rendering for interactive code examples to handle React lazy components properly
|
|
@@ -75,7 +74,6 @@
|
|
|
75
74
|
```
|
|
76
75
|
|
|
77
76
|
- [#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.
|
|
78
|
-
|
|
79
77
|
- Increased spacing below React code blocks, which was previously too small.
|
|
80
78
|
|
|
81
79
|
- [#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
|
|
@@ -93,7 +91,6 @@
|
|
|
93
91
|
### Patch Changes
|
|
94
92
|
|
|
95
93
|
- [#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.
|
|
96
|
-
|
|
97
94
|
- Added active header link as sidebar heading.
|
|
98
95
|
- Made active header the root item of breadcrumbs, if available.
|
|
99
96
|
- Made sidebar group headlines link to the index page.
|
|
@@ -117,7 +114,6 @@
|
|
|
117
114
|
### Minor Changes
|
|
118
115
|
|
|
119
116
|
- [#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.
|
|
120
|
-
|
|
121
117
|
- Updated the header navigation to more closely visually align it with the existing Primer docs navigation.
|
|
122
118
|
- Removed `_meta.global.ts` and instead directly pass header and sidebar links into the Doctocat `Theme` component.
|
|
123
119
|
|
|
@@ -147,7 +143,6 @@
|
|
|
147
143
|
### Patch Changes
|
|
148
144
|
|
|
149
145
|
- [#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:
|
|
150
|
-
|
|
151
146
|
- Sidebar offset added to prevent links being trapped under fixed header
|
|
152
147
|
- Narrow viewport overflow bug fixed
|
|
153
148
|
- Table of contents presentation fixed on narrow viewport, and has improved presentation on wider breakpoints.
|
|
@@ -196,7 +191,6 @@
|
|
|
196
191
|
### Minor Changes
|
|
197
192
|
|
|
198
193
|
- [#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
|
|
199
|
-
|
|
200
194
|
- [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)
|
|
201
195
|
|
|
202
196
|
## 0.1.0
|
|
@@ -206,7 +200,6 @@
|
|
|
206
200
|
- [#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).
|
|
207
201
|
|
|
208
202
|
To migrate Doctocat to this release, follow these steps:
|
|
209
|
-
|
|
210
203
|
1. Install the latest version `npm i @primer/doctocat-nextjs@0.1.0`
|
|
211
204
|
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:
|
|
212
205
|
|
|
@@ -282,7 +275,6 @@
|
|
|
282
275
|
- [`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
|
|
283
276
|
|
|
284
277
|
- [#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
|
|
285
|
-
|
|
286
278
|
- Added anchor links to headings to match current functionality on primer.style
|
|
287
279
|
|
|
288
280
|
- [`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
|
|
@@ -169,7 +169,8 @@ export const GlobalSearch = forwardRef<HTMLInputElement, GlobalSearchProps>(
|
|
|
169
169
|
<div ref={searchResultsRef}>
|
|
170
170
|
<FormControl>
|
|
171
171
|
<FormControl.Label visuallyHidden>Search</FormControl.Label>
|
|
172
|
-
<TextInput
|
|
172
|
+
<TextInput
|
|
173
|
+
as="input"
|
|
173
174
|
contrast
|
|
174
175
|
type="search"
|
|
175
176
|
className={styles.GlobalSearch__searchInput}
|
|
@@ -109,7 +109,13 @@ export function Header({siteTitle, flatDocsDirectories, pageMap}: HeaderProps) {
|
|
|
109
109
|
<Text as="p" size="300" weight="semibold">
|
|
110
110
|
Search
|
|
111
111
|
</Text>
|
|
112
|
-
|
|
112
|
+
<IconButton
|
|
113
|
+
as="button"
|
|
114
|
+
icon={XIcon}
|
|
115
|
+
variant="invisible"
|
|
116
|
+
aria-label="Close search"
|
|
117
|
+
onClick={closeSearch}
|
|
118
|
+
/>
|
|
113
119
|
</Stack>
|
|
114
120
|
</div>
|
|
115
121
|
</FocusOn>
|
|
@@ -123,24 +129,24 @@ export function Header({siteTitle, flatDocsDirectories, pageMap}: HeaderProps) {
|
|
|
123
129
|
aria-label={`Switch to ${colorMode === 'light' ? 'dark' : 'light'} mode`}
|
|
124
130
|
onClick={() => setColorMode(colorMode === 'light' ? 'dark' : 'light')}
|
|
125
131
|
/>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
<IconButton
|
|
133
|
+
as="button"
|
|
134
|
+
ref={searchTriggerRef}
|
|
135
|
+
className={styles.Header__searchButton}
|
|
136
|
+
icon={SearchIcon}
|
|
137
|
+
variant="invisible"
|
|
138
|
+
aria-label={`Open search`}
|
|
139
|
+
onClick={() => setIsSearchOpen(true)}
|
|
140
|
+
/>
|
|
135
141
|
<div className={styles.Header__navDrawerContainer}>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
<IconButton
|
|
143
|
+
as="button"
|
|
144
|
+
icon={ThreeBarsIcon}
|
|
145
|
+
variant="invisible"
|
|
146
|
+
aria-label="Menu"
|
|
147
|
+
aria-expanded={isNavDrawerOpen}
|
|
148
|
+
onClick={() => setIsNavDrawerOpen(true)}
|
|
149
|
+
/>
|
|
144
150
|
<NavDrawer isOpen={isNavDrawerOpen} onDismiss={() => setIsNavDrawerOpen(false)} pageMap={pageMap} />
|
|
145
151
|
</div>
|
|
146
152
|
</Stack>
|