Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add /ecosystem page and migrate to @theguild/components v8 and Nextra 4 #6037

Merged
merged 100 commits into from
Dec 16, 2024

Conversation

hasparus
Copy link
Collaborator

@hasparus hasparus commented Nov 25, 2024

Background

I'll admit I thought the migration will go faster and that's why those two things are in the same PR.

Description

What's changed

  • Added /ecosystem page.
  • Migrated to new @theguild/components and by extension Nextra 4.

Checklist

  • Manual testing (seems to work)
  • Automatic testing for dead links
  • Compare old and new lighthouse audit

<meta content="en" httpEquiv="Content-Language" />
<title>{title}</title>
<meta name="description" content={description} />
<meta property="og:title" content={title} />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<meta property="og:title" content={title} />

we use Next.js Metadata API

<link rel="canonical" href={canonicalUrl} />
<meta content="en" httpEquiv="Content-Language" />
<title>{title}</title>
<meta name="description" content={description} />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<meta name="description" content={description} />

we use Next.js Metadata API

:root {
--font-sans: ${neueMontreal.style.fontFamily};
}
:root.dark {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:root.dark {
.dark {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without :root we have lower specificity. I'm not certain removing it won't change everything.

--nextra-primary-lightness: 55%;
--nextra-bg: 17, 17, 17;
}
:root.dark *::selection {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:root.dark *::selection {
.dark *::selection {

:root.dark *::selection {
background-color: hsl(191deg 95% 72% / 0.25)
}
:root.light, body.light {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
:root.light, body.light {
.light, body.light {

styles.container,
)}
>
<div className={'flex flex-row ' + styles.vars}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div className={'flex flex-row ' + styles.vars}>
<div className={cn('flex', styles.vars)}>

<div>
<Edge
top
className="flex h-[var(--node-h)] flex-row items-center"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
className="flex h-[var(--node-h)] flex-row items-center"
className="flex h-[--node-h] items-center"

<EdgeLabel onPointerOver={onPointerOverEdge}>1</EdgeLabel>
<div className="w-[calc(var(--label-h)/1.6)]" />
</Edge>
<div className="h-[var(--gap)]" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div className="h-[var(--gap)]" />
<div className="h-[--gap]" />

<Edge
top
highlighted={highlightedEdge === 3}
className="flex h-[var(--big-node-h)] flex-row items-center"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
className="flex h-[var(--big-node-h)] flex-row items-center"
className="flex h-[--big-node-h] items-center"

Comment on lines 331 to 333
'relative z-10 flex h-[--node-h] items-center gap-2 rounded-2xl p-4 xl:gap-4 xl:p-[22px]' +
' bg-[linear-gradient(135deg,rgb(255_255_255/0.10),rgb(255_255_255/0.20))]' +
' cursor-pointer transition-colors duration-500 [&>svg]:flex-shrink-0',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'relative z-10 flex h-[--node-h] items-center gap-2 rounded-2xl p-4 xl:gap-4 xl:p-[22px]' +
' bg-[linear-gradient(135deg,rgb(255_255_255/0.10),rgb(255_255_255/0.20))]' +
' cursor-pointer transition-colors duration-500 [&>svg]:flex-shrink-0',
'relative z-10 flex h-[--node-h] items-center gap-2 rounded-2xl p-4 xl:gap-4 xl:p-[22px]',
'bg-[linear-gradient(135deg,rgb(255_255_255/0.10),rgb(255_255_255/0.20))]',
'cursor-pointer transition-colors duration-500 [&>svg]:flex-shrink-0',

@dotansimha dotansimha marked this pull request as draft December 11, 2024 13:22
hasparus and others added 2 commits December 13, 2024 19:24
Co-authored-by: Dimitri POSTOLOV <[email protected]>
Co-authored-by: Piotr Monwid-Olechnowicz <[email protected]>
const args = parseArgs({
options: {
cwd: { type: 'string', default: process.cwd() },
files: { type: 'string', default: 'src/content/**/*.mdx' },
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
files: { type: 'string', default: 'src/content/**/*.mdx' },
files: { type: 'string', default: 'src/**/*.mdx' },

@dimaMachina I'm changing it to grab components and pages dir too.

@dimaMachina dimaMachina marked this pull request as ready for review December 16, 2024 11:08
@dimaMachina dimaMachina merged commit f30c4cf into nextra-4--move-files Dec 16, 2024
17 of 18 checks passed
@dimaMachina dimaMachina deleted the ecosystem-page branch December 16, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants