Skip to content

Commit 9498702

Browse files
authored
Replace GlobalHeader by MarketingNavbar (#859)
* Replace `GlobalHeader` by `MarketingNavbar` * Tweaks
1 parent 802ef78 commit 9498702

File tree

10 files changed

+2012
-3175
lines changed

10 files changed

+2012
-3175
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,16 @@
2222
"eslint": "^8.57.1",
2323
"eslint-plugin-mdx": "^2.3.4",
2424
"prettier": "^3.4.2",
25-
"prettier-plugin-tailwindcss": "^0.6.9",
25+
"prettier-plugin-tailwindcss": "^0.6.11",
2626
"remark-frontmatter": "^5.0.0",
2727
"remark-lint-first-heading-level": "^3.1.2",
2828
"remark-lint-heading-increment": "^3.1.2",
2929
"remark-lint-no-heading-punctuation": "^3.1.2",
3030
"remark-lint-restrict-elements": "workspace:*",
3131
"turbo": "^1.13.4",
3232
"typescript": "^5.7.3"
33+
},
34+
"resolutions": {
35+
"@babel/core": "7.26.7"
3336
}
3437
}

packages/nextra-theme/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"typecheck": "tsc --noEmit"
2626
},
2727
"peerDependencies": {
28-
"@edgeandnode/gds": "^5",
29-
"@edgeandnode/go": "^6",
28+
"@edgeandnode/gds": "^6",
29+
"@edgeandnode/go": "^8",
3030
"@emotion/react": "^11",
3131
"next": "^13",
3232
"next-seo": "^6",
@@ -35,16 +35,16 @@
3535
"theme-ui": "^0.16"
3636
},
3737
"dependencies": {
38-
"@docsearch/react": "^3.8.2",
38+
"@docsearch/react": "^3.8.3",
3939
"@radix-ui/react-collapsible": "^1.1.2",
4040
"@radix-ui/react-visually-hidden": "^1.1.1",
4141
"lodash": "^4.17.21",
42-
"react-intersection-observer": "^9.14.1",
42+
"react-intersection-observer": "^9.15.1",
4343
"react-use": "^17.6.0"
4444
},
4545
"devDependencies": {
46-
"@edgeandnode/gds": "^5.41.0",
47-
"@edgeandnode/go": "^6.79.0",
46+
"@edgeandnode/gds": "^6.1.2",
47+
"@edgeandnode/go": "^8.4.3",
4848
"@emotion/react": "^11.14.0",
4949
"@types/lodash": "^4.17.14",
5050
"@types/react": "^18.3.18",

packages/nextra-theme/src/components/DocSearch.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@ export function DocSearch(props: DocSearchProps) {
6464
onClick={onOpen}
6565
innerFocusRing
6666
sx={{
67-
borderRadius: [BorderRadius.FULL, null, null, BorderRadius.S],
68-
'&:focus-visible': { outline: ['none', null, null, `${BorderWidth['4px']} solid ${theme.colors!.Purple16}`] },
67+
borderRadius: [BorderRadius.FULL, null, null, null, BorderRadius.S],
68+
'&:focus-visible': {
69+
outline: ['none', null, null, null, `${BorderWidth['4px']} solid ${theme.colors.Purple16}`],
70+
},
6971
}}
7072
>
71-
<Responsive.Multiple as="span" cases={['mobile', null, null, 'desktop']}>
73+
<Responsive.Multiple as="span" cases={['mobile', null, null, null, 'desktop']}>
7274
{(caseName) => {
7375
switch (caseName) {
7476
case 'mobile':
@@ -158,17 +160,17 @@ export function DocSearch(props: DocSearchProps) {
158160
styles={{
159161
html: {
160162
'--docsearch-spacing': '0 !important',
161-
'--docsearch-container-background': `${theme.colors!.Midnight88} !important`,
163+
'--docsearch-container-background': `${theme.colors.Midnight88} !important`,
162164
'--docsearch-modal-width': 'min(calc(100vw - 32px), 840px) !important',
163-
'--docsearch-modal-background': `${theme.colors!.Tooltip} !important`,
165+
'--docsearch-modal-background': `${theme.colors.Tooltip} !important`,
164166
'--docsearch-modal-shadow': 'none !important',
165167
'--docsearch-searchbox-height': ['64px !important', null, '96px !important'],
166168
'--docsearch-searchbox-focus-background': 'transparent !important',
167169
'--docsearch-searchbox-shadow': 'none !important',
168170
'--docsearch-hit-background': 'transparent !important',
169-
'--docsearch-hit-color': `${theme.colors!.White88} !important`,
170-
'--docsearch-hit-active-color': `${theme.colors!.White} !important`,
171-
'--docsearch-highlight-color': `${theme.colors!.Purple} !important`,
171+
'--docsearch-hit-color': `${theme.colors.White88} !important`,
172+
'--docsearch-hit-active-color': `${theme.colors.White} !important`,
173+
'--docsearch-highlight-color': `${theme.colors.Purple} !important`,
172174
},
173175
'.DocSearch-Container': {
174176
animation: `${animationFadeIn} 150ms ease-in-out`,

packages/nextra-theme/src/index.tsx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { useSet } from 'react-use'
99
import type { ThemeUICSSObject } from 'theme-ui'
1010

1111
import { Divider, type DividerProps, Flex, Icon, Spacing, useI18n } from '@edgeandnode/gds'
12-
import { NPSForm } from '@edgeandnode/go'
1312

1413
import {
1514
Callout,
@@ -245,30 +244,6 @@ export default function NextraLayout({ children, pageOpts, pageProps }: NextraTh
245244

246245
<div sx={{ mt: Spacing['64px'] }}>
247246
<MDXLayoutPagination />
248-
{/* TODO: Uncomment when we're ready to add the NPS form to the docs
249-
<NPSForm
250-
key={fsPath}
251-
question="Was this page helpful?"
252-
choices={[
253-
{
254-
label: 'No',
255-
commentsLabel: 'How can we improve this page?',
256-
icon: <Icon.ThumbsDown title="No" size="24px" />,
257-
hideLabel: true,
258-
score: -1,
259-
},
260-
{
261-
label: 'Yes',
262-
commentsLabel: 'In what way did this page help you?',
263-
icon: <Icon.ThumbsUp title="Yes" size="24px" />,
264-
hideLabel: true,
265-
score: 1,
266-
},
267-
]}
268-
chipSize="xlarge"
269-
sx={{ mb: Spacing['32px'] }}
270-
/>
271-
*/}
272247
</div>
273248
</div>
274249

packages/og-image/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
"yoga-wasm-web": "0.3.3"
1717
},
1818
"devDependencies": {
19-
"@cloudflare/workers-types": "^4.20250109.0",
19+
"@cloudflare/workers-types": "^4.20250124.3",
2020
"@types/react": "^18.3.18",
2121
"jest-image-snapshot": "^6.4.0",
2222
"tsx": "^4.19.2",
2323
"typescript": "^5.7.3",
2424
"vitest": "^1.6.0",
25-
"wrangler": "^3.101.0"
25+
"wrangler": "^3.105.1"
2626
}
2727
}

0 commit comments

Comments
 (0)