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

New yoga website #3570

Merged
merged 111 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
a11d9f9
new docs
dimaMachina Dec 17, 2024
e4e56ef
new docs
dimaMachina Dec 17, 2024
35d0329
new docs
dimaMachina Dec 17, 2024
feca01c
move layout
dimaMachina Dec 17, 2024
220e957
a
dimaMachina Dec 17, 2024
8d93a62
move
dimaMachina Dec 18, 2024
62511a9
move
dimaMachina Dec 18, 2024
9785e1a
more
dimaMachina Dec 18, 2024
b2e0b9a
more [skip ci]
dimaMachina Dec 18, 2024
d2c8d19
more [skip ci]
dimaMachina Dec 18, 2024
97db170
more [skip ci]
dimaMachina Dec 18, 2024
9b315a4
more [skip ci]
dimaMachina Dec 18, 2024
8b9fa4b
more [skip ci]
dimaMachina Dec 18, 2024
82e1575
more [skip ci]
dimaMachina Dec 18, 2024
0681311
more [skip ci]
dimaMachina Dec 18, 2024
8c92bdc
more [skip ci]
dimaMachina Dec 18, 2024
943b7ca
more [skip ci]
dimaMachina Dec 18, 2024
a8d7d23
more [skip ci]
dimaMachina Dec 18, 2024
50a2e4d
more [skip ci]
dimaMachina Dec 18, 2024
1923709
more [skip ci]
dimaMachina Dec 18, 2024
71e173b
build works [skip-ci]
dimaMachina Dec 18, 2024
81148fc
add v3
dimaMachina Dec 18, 2024
6f91f3d
add v3 [skip ci]
dimaMachina Dec 18, 2024
9e8841a
add v3 docs [skip ci]
dimaMachina Dec 18, 2024
f4d6939
add v4 [skip ci]
dimaMachina Dec 18, 2024
1fa41a6
add v4 [skip ci]
dimaMachina Dec 18, 2024
4001faa
add v4 [skip ci]
dimaMachina Dec 18, 2024
68fac71
v4 [skip ci]
dimaMachina Dec 18, 2024
71f4f86
more [skip ci]
dimaMachina Dec 18, 2024
290105f
more [skip ci]
dimaMachina Dec 18, 2024
f2b1b15
more [skip ci]
dimaMachina Dec 18, 2024
7981040
more [skip ci]
dimaMachina Dec 18, 2024
6f1b6cb
prettier [skip ci]
dimaMachina Dec 18, 2024
5934425
upd components [skip ci]
dimaMachina Dec 18, 2024
2d484f6
rm [skip ci]
dimaMachina Dec 18, 2024
025b7b2
tweeks [skip ci]
dimaMachina Dec 18, 2024
52aa4e4
do preview
dimaMachina Dec 18, 2024
617f9ef
Merge branch 'main' into new-docs
dimaMachina Dec 18, 2024
f5643ca
pnpm i
dimaMachina Dec 18, 2024
1ed2992
should fix
dimaMachina Dec 18, 2024
ae28cc4
use height: auto for logo, to fix mobile nav height
dimaMachina Dec 18, 2024
875410a
changelogs
dimaMachina Dec 20, 2024
5be16c7
changelogs [skip ci]
dimaMachina Dec 20, 2024
1c9e725
add metadata [skip ci]
dimaMachina Dec 20, 2024
3220334
do not index changelogs
dimaMachina Dec 20, 2024
cac9baa
tweaks
dimaMachina Dec 20, 2024
f7bc248
add `VersionedSearch`
dimaMachina Dec 23, 2024
59865a3
Merge branch 'main' into new-docs
dimaMachina Dec 23, 2024
9311b58
prettify
dimaMachina Dec 23, 2024
d9bf784
missing pnpm i
dimaMachina Dec 23, 2024
4a6aa4e
lint
dimaMachina Dec 23, 2024
4dbd4e6
lint
dimaMachina Dec 23, 2024
41f91ff
lint
dimaMachina Dec 23, 2024
f8c14ed
lint
dimaMachina Dec 23, 2024
6fe48ce
remove title from _meta
dimaMachina Dec 23, 2024
bd7be75
landing page
dimaMachina Dec 23, 2024
7120d7f
faq
dimaMachina Dec 23, 2024
d1415c5
more
dimaMachina Dec 23, 2024
0cc6071
more
dimaMachina Dec 23, 2024
cc3e202
Using Apollo Server? Reach zen quicker with Yoga. looks good
dimaMachina Jan 2, 2025
b907f04
add runs anywhere section
dimaMachina Jan 2, 2025
e935e63
more
dimaMachina Jan 2, 2025
7818efc
add Practice Yoga while doing server-work
dimaMachina Jan 2, 2025
2126dbf
more stuff
dimaMachina Jan 2, 2025
6ba53f3
truly extendable section
dimaMachina Jan 2, 2025
1fafbdc
more
dimaMachina Jan 2, 2025
0572208
upd
dimaMachina Jan 3, 2025
5223339
add infinity moving cards
dimaMachina Jan 3, 2025
1769f23
more
dimaMachina Jan 3, 2025
f4323cf
upd
dimaMachina Jan 3, 2025
e16c8f3
upd
dimaMachina Jan 3, 2025
c38f7f2
upd
dimaMachina Jan 3, 2025
c50e4a4
upd
dimaMachina Jan 3, 2025
d152ab6
upd
dimaMachina Jan 3, 2025
747015d
upd
dimaMachina Jan 3, 2025
0d68487
upd
dimaMachina Jan 3, 2025
c93619b
upd
dimaMachina Jan 3, 2025
30733f2
upd
dimaMachina Jan 3, 2025
bbc50c7
upd
dimaMachina Jan 3, 2025
f3a58a1
prettier
dimaMachina Jan 3, 2025
2f6b6a6
add version dropdown
dimaMachina Jan 3, 2025
ffbc91d
upd
dimaMachina Jan 3, 2025
f7ed362
Merge branch 'main' into new-docs
dimaMachina Jan 3, 2025
778d8a8
pnpm i
dimaMachina Jan 3, 2025
00bce5e
polish
dimaMachina Jan 6, 2025
c01fdd6
Merge branch 'main' into new-docs
dimaMachina Jan 6, 2025
06a582c
pnpm i
dimaMachina Jan 6, 2025
fba3efd
upd
dimaMachina Jan 6, 2025
4450d35
upd
dimaMachina Jan 6, 2025
e31cb36
upd
dimaMachina Jan 6, 2025
2ecd3ce
upd
dimaMachina Jan 6, 2025
b994efb
Merge branch 'main' into new-docs
dimaMachina Jan 6, 2025
75743fa
pnpm i
dimaMachina Jan 6, 2025
2860c34
rm comment
dimaMachina Jan 6, 2025
bded8b1
lint
dimaMachina Jan 6, 2025
da4d0ab
review fixes
dimaMachina Jan 6, 2025
5ad2b5e
use nextra stable
dimaMachina Jan 14, 2025
7ccf69e
Merge branch 'main' into new-docs
dimaMachina Jan 14, 2025
c54fd2e
pnpm lock
dimaMachina Jan 14, 2025
891b180
move sections, comments faq section
dimaMachina Jan 14, 2025
9aab2e6
Merge branch 'main' into new-docs
dimaMachina Jan 14, 2025
73b606d
pnpm lock
dimaMachina Jan 14, 2025
2c2cf8b
move everything http
dimaMachina Jan 14, 2025
7bc6881
Merge branch 'main' into new-docs
dimaMachina Jan 14, 2025
c625e54
pnpm i
dimaMachina Jan 14, 2025
17d457d
Merge branch 'main' into new-docs
dimaMachina Jan 16, 2025
ac61b2d
add links to blocks
dimaMachina Jan 16, 2025
ba2f3a8
polish
dimaMachina Jan 16, 2025
29d3bc5
fix hero
dimaMachina Jan 21, 2025
e45f41a
fixes
dimaMachina Jan 21, 2025
5958e00
Merge branch 'main' into new-docs
dimaMachina Jan 22, 2025
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
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ module.exports = {
},
},
{
files: ['**/_meta.{ts,js,tsx}'],
files: ['website/**/*.{ts,js,tsx}'],
rules: {
'import/no-default-export': 'off',
'import/extensions': 'off',
},
},
{
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ out/
packages/graphql-yoga/src/landing-page-html.ts
packages/graphql-yoga/src/graphiql-html.ts
run/
website/public/_pagefind/
11 changes: 0 additions & 11 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,4 @@ examples/apollo-federation-compatibility/src/resolvers-types.ts
examples/hackernews/**/*.generated.*
out/

# Since prettier doesn't support MDX2 he breaks formatting for the following
website/src/pages/v2/migration/migration-from-yoga-v1.mdx

# Meta code files have "assertions" that are not currently supported by prettier
website/src/pages/v2/_meta.js
website/src/lib/v2-get-static-props.ts
website/src/pages/v3/_meta.js
website/src/lib/v3-get-static-props.ts
website/src/pages/v4/_meta.js
website/src/lib/v4-get-static-props.ts

.husky/
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"postchangeset": "pnpm install --no-frozen-lockfile",
"postinstall": "husky install",
"prebuild": "rimraf packages/*/dist",
"prettier": "prettier --ignore-path .prettierignore --write --list-different .",
"prettier": "prettier --ignore-path .prettierignore --write --list-different --cache .",
"prettier:check": "prettier --ignore-path .prettierignore --check .",
"release": "pnpm build && changeset publish",
"start:docs": "pnpm --filter=website dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/render-graphiql/scripts/yoga-bundle-string.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const directoryName = path.dirname(fileURLToPath(import.meta.url));
const inputPath = path.resolve(directoryName, '..', '..', 'graphiql', 'dist');
const jsFile = path.resolve(inputPath, 'yoga-graphiql.umd.js');
const cssFile = path.resolve(inputPath, 'graphiql.css');
const faviconFile = path.resolve(directoryName, '../../../website/public/favicon.ico');
const faviconFile = path.resolve(directoryName, '../../../website/src/app/favicon.ico');

const outFile = path.resolve(directoryName, '..', 'src', 'graphiql.ts');

Expand Down
498 changes: 224 additions & 274 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion website/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
34 changes: 5 additions & 29 deletions website/next.config.js → website/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,7 @@
import { withGuildDocs } from '@theguild/components/next.config';

// eslint-disable-next-line import/no-default-export
export default withGuildDocs({
nextraConfig: {
transformPageMap(pageOpts) {
// TODO: temporal fix to show link for versioned folder in navbar (otherwise you can see only when navigated to it directly)
pageOpts
.find(o => o.name === 'v2')
.children.push({
name: 'index',
route: '/v2',
frontMatter: {},
});
pageOpts
.find(o => o.name === 'v3')
.children.push({
name: 'index',
route: '/v3',
frontMatter: {},
});
pageOpts
.find(o => o.name === 'v4')
.children.push({
name: 'index',
route: '/v4',
frontMatter: {},
});
return pageOpts;
},
},
redirects: () =>
redirects: async () =>
Object.entries({
'/docs/quick-start': '/docs',
'/tutorial': '/tutorial/basic',
Expand All @@ -45,6 +17,7 @@ export default withGuildDocs({
'/v2/features/persisted-operations': '/v2',
'/features/graphiql': '/docs/features/graphiql',
'/examples/graphql-ws': '/docs/features/subscriptions',
'/changelog': '/changelogs/graphql-yoga',
}).map(([from, to]) => ({
source: from,
destination: to,
Expand All @@ -53,5 +26,8 @@ export default withGuildDocs({
eslint: {
ignoreDuringBuilds: true,
},
env: {
SITE_URL: 'https://the-guild.dev/graphql/yoga-server',
},
output: 'export',
});
17 changes: 8 additions & 9 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,28 @@
"analyze": "cross-env ANALYZE=true next build",
"build": "next build",
"check": "exit 0",
"dev": "next",
"fetch-remote-filepaths": "tsx scripts/fetch-remote-filepaths.ts",
"postbuild": "next-sitemap && node scripts/sitemap-ci.mjs",
"prebuild": "pnpm predev",
"predev": "pnpm fetch-remote-filepaths",
"dev": "next --turbopack",
"pagefind": "pagefind --site .next/server/app --output-path out/_pagefind",
"postbuild": "next-sitemap && tsx scripts/sitemap-ci && pnpm pagefind",
"start": "next start"
},
"dependencies": {
"@theguild/components": "7.6.2",
"clsx": "2.1.1",
"graphql": "16.10.0",
"@theguild/components": "9.2.0",
"fast-glob": "^3.3.2",
"next": "15.1.6",
"next-sitemap": "4.2.3",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-icons": "5.4.0"
"react-icons": "5.4.0",
"unist-util-visit-parents": "^6.0.1"
},
"devDependencies": {
"@theguild/tailwind-config": "0.6.2",
"@types/node": "22.10.7",
"@types/react": "19.0.7",
"cross-env": "7.0.3",
"fast-xml-parser": "4.5.1",
"pagefind": "1.3.0",
"postcss-import": "16.1.0",
"postcss-lightningcss": "1.0.1",
"tailwindcss": "3.4.17",
Expand Down
1 change: 1 addition & 0 deletions website/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from '@theguild/tailwind-config/postcss.config';
4 changes: 0 additions & 4 deletions website/postcss.config.mjs

This file was deleted.

42 changes: 1 addition & 41 deletions website/remote-files/v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,45 +27,5 @@
"migration/migration-from-apollo-server.mdx",
"migration/migration-from-express-graphql.mdx",
"migration/migration-from-yoga-v1.mdx"
],
"nestedMeta": {
"index": "Quick Start",
"features": {
"type": "folder",
"items": {
"graphiql": "GraphiQL",
"context": "GraphQL Context",
"error-masking": "Error Masking",
"subscriptions": "Subscriptions",
"file-uploads": "File Uploads",
"envelop-plugins": "Envelop Plugins",
"testing": "Testing",
"apollo-federation": "Apollo Federation",
"cors": "CORS"
}
},
"integrations": {
"type": "folder",
"items": {
"integration-with-aws-lambda": "AWS Lambda",
"integration-with-cloudflare-workers": "Cloudflare Workers",
"integration-with-deno": "Deno",
"integration-with-express": "Express",
"integration-with-fastify": "Fastify",
"integration-with-koa": "Koa",
"integration-with-nestjs": "NestJS",
"integration-with-nextjs": "Next.js",
"integration-with-sveltekit": "SvelteKit",
"z-other-environments": "Other Environments"
}
},
"migration": {
"type": "folder",
"items": {
"migration-from-apollo-server": "Apollo Server",
"migration-from-express-graphql": "Express GraphQL",
"migration-from-yoga-v1": "Yoga v1"
}
}
}
]
}
60 changes: 1 addition & 59 deletions website/remote-files/v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,63 +45,5 @@
"migration/migration-from-express-graphql.mdx",
"migration/migration-from-yoga-v1.mdx",
"migration/migration-from-yoga-v2.mdx"
],
"nestedMeta": {
"index": "Quick Start",
"features": {
"type": "folder",
"items": {
"schema": "GraphQL Schema",
"graphiql": "GraphiQL",
"context": "GraphQL Context",
"error-masking": "Error Masking",
"introspection": "Introspection",
"subscriptions": "Subscriptions",
"file-uploads": "File Uploads",
"defer-stream": "Defer and Stream",
"request-batching": "Request Batching",
"cors": "CORS",
"csrf-prevention": "CSRF Prevention",
"parsing-and-validation-caching": "Parsing and Validation Caching",
"response-caching": "Response Caching",
"persisted-operations": "Persisted Operations",
"automatic-persisted-queries": "Automatic Persisted Queries",
"logging-and-debugging": "Logging and Debugging",
"health-check": "Health Check",
"sofa-api": "REST API",
"cookies": "Cookies",
"apollo-federation": "Apollo Federation",
"envelop-plugins": "Plugins",
"testing": "Testing"
}
},
"integrations": {
"type": "folder",
"items": {
"integration-with-aws-lambda": "AWS Lambda",
"integration-with-cloudflare-workers": "Cloudflare Workers",
"integration-with-gcp": "Google Cloud Platform",
"integration-with-deno": "Deno",
"integration-with-express": "Express",
"integration-with-fastify": "Fastify",
"integration-with-koa": "Koa",
"integration-with-nestjs": "NestJS",
"integration-with-nextjs": "Next.js",
"integration-with-sveltekit": "SvelteKit",
"integration-with-hapi": "Hapi",
"integration-with-bun": "Bun",
"integration-with-uwebsockets": "µWebSockets",
"z-other-environments": "Other Environments"
}
},
"migration": {
"type": "folder",
"items": {
"migration-from-apollo-server": "Apollo Server",
"migration-from-express-graphql": "Express GraphQL",
"migration-from-yoga-v1": "Yoga v1",
"migration-from-yoga-v2": "Yoga v2"
}
}
}
]
}
62 changes: 1 addition & 61 deletions website/remote-files/v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,65 +47,5 @@
"migration/migration-from-yoga-v1.mdx",
"migration/migration-from-yoga-v2.mdx",
"migration/migration-from-yoga-v3.mdx"
],
"nestedMeta": {
"index": "Quick Start",
"features": {
"type": "folder",
"items": {
"schema": "GraphQL Schema",
"graphiql": "GraphiQL",
"context": "GraphQL Context",
"error-masking": "Error Masking",
"introspection": "Introspection",
"subscriptions": "Subscriptions",
"file-uploads": "File Uploads",
"defer-stream": "Defer and Stream",
"request-batching": "Request Batching",
"cors": "CORS",
"csrf-prevention": "CSRF Prevention",
"parsing-and-validation-caching": "Parsing and Validation Caching",
"response-caching": "Response Caching",
"persisted-operations": "Persisted Operations",
"automatic-persisted-queries": "Automatic Persisted Queries",
"logging-and-debugging": "Logging and Debugging",
"health-check": "Health Check",
"sofa-api": "REST API",
"cookies": "Cookies",
"apollo-federation": "Apollo Federation",
"envelop-plugins": "Plugins",
"testing": "Testing",
"jwt": "JWT"
}
},
"integrations": {
"type": "folder",
"items": {
"integration-with-aws-lambda": "AWS Lambda",
"integration-with-cloudflare-workers": "Cloudflare Workers",
"integration-with-gcp": "Google Cloud Platform",
"integration-with-deno": "Deno",
"integration-with-express": "Express",
"integration-with-fastify": "Fastify",
"integration-with-koa": "Koa",
"integration-with-nestjs": "NestJS",
"integration-with-nextjs": "Next.js",
"integration-with-sveltekit": "SvelteKit",
"integration-with-hapi": "Hapi",
"integration-with-bun": "Bun",
"integration-with-uwebsockets": "µWebSockets.js",
"z-other-environments": "Other Environments"
}
},
"migration": {
"type": "folder",
"items": {
"migration-from-apollo-server": "Apollo Server",
"migration-from-express-graphql": "Express GraphQL",
"migration-from-yoga-v1": "Yoga v1",
"migration-from-yoga-v2": "Yoga v2",
"migration-from-yoga-v3": "Yoga v3"
}
}
}
]
}
27 changes: 26 additions & 1 deletion website/route-lockfile.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@

/changelog
/changelog -> /changelogs/graphql-yoga
/changelogs/client/apollo-link
/changelogs/client/urql-exchange
/changelogs/event-target/redis-event-target
/changelogs/event-target/typed-event-target
/changelogs/graphiql
/changelogs/graphql-yoga
/changelogs/logger
/changelogs/nestjs
/changelogs/nestjs-federation
/changelogs/plugins/apollo-inline-trace
/changelogs/plugins/apollo-managed-federation
/changelogs/plugins/apollo-usage-report
/changelogs/plugins/apq
/changelogs/plugins/csrf-prevention
/changelogs/plugins/defer-stream
/changelogs/plugins/disable-introspection
/changelogs/plugins/graphql-sse
/changelogs/plugins/jwt
/changelogs/plugins/persisted-operations
/changelogs/plugins/prometheus
/changelogs/plugins/response-cache
/changelogs/plugins/sofa
/changelogs/render-graphiql
/changelogs/subscription
/docs
/docs/comparison
/docs/features -> /docs
Expand All @@ -13,6 +37,7 @@
/docs/features/envelop-plugins
/docs/features/error-masking
/docs/features/execution-cancellation
/docs/features/explicit-resource-management
/docs/features/file-uploads
/docs/features/graphiql
/docs/features/health-check
Expand Down
Loading
Loading