Skip to content

Commit 8f3509e

Browse files
committed
Make the pages render without errors
1 parent 4e27b21 commit 8f3509e

File tree

7 files changed

+65
-198
lines changed

7 files changed

+65
-198
lines changed

website/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import Link from 'next/link';
2+
import { Anchor, Callout } from '@theguild/components';
3+
4+
export function LegacyDocsBanner() {
5+
return (
6+
<Callout type="warning">
7+
This is the documentation for the <b>old</b> GraphQL Mesh version v0. We recommend upgrading
8+
to the latest GraphQL Mesh version v1.
9+
<Anchor href="/v1/migration-from-v0" className="block">
10+
Migrate to GraphQL Mesh v1
11+
</Anchor>
12+
</Callout>
13+
);
14+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const metadata = {
2+
title: 'GraphQL Mesh',
3+
description: 'A fully-featured GraphQL gateway framework',
4+
};
5+
6+
export { IndexPage as default } from '../../components/index-page';

website/src/app/_meta.tsx

Lines changed: 41 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,10 @@
1-
import Link from 'next/link';
2-
import { Callout } from '@theguild/components';
1+
// import { PRODUCTS_MENU_LIST } from '@theguild/components/products';
32

4-
function LegacyDocsBanner() {
5-
return (
6-
<Callout type="warning">
7-
This is the documentation for the <b>old</b> GraphQL Mesh version v0. We recommend upgrading
8-
to the latest GraphQL Mesh version v1.
9-
<br />
10-
<br />
11-
<Link
12-
href={`/v1/migration-from-v0`}
13-
className="_text-primary-600 _underline _decoration-from-font [text-underline-position:from-font]"
14-
>
15-
Migrate to GraphQL Mesh v1
16-
</Link>
17-
</Callout>
18-
);
19-
}
20-
21-
export default {
22-
index: {
23-
title: 'Home',
24-
type: 'page',
25-
display: 'hidden',
26-
theme: {
27-
layout: 'raw',
28-
},
29-
},
3+
const meta = {
304
examples: {
315
title: 'Examples',
326
type: 'page',
337
display: 'hidden',
34-
theme: {
35-
layout: 'raw',
36-
footer: false,
37-
},
388
},
399
v1: {
4010
title: 'v1',
@@ -43,8 +13,45 @@ export default {
4313
docs: {
4414
title: 'v0',
4515
type: 'page',
46-
theme: {
47-
topContent: LegacyDocsBanner,
16+
},
17+
// #region shared items between all websites
18+
// TODO: Move it to shared layout.
19+
// products: PRODUCTS_MENU_LIST,
20+
ecosystem: {
21+
title: 'Ecosystem',
22+
type: 'page',
23+
href: 'https://the-guild.dev/graphql/hive/ecosystem',
24+
},
25+
blog: {
26+
title: 'Blog',
27+
type: 'page',
28+
href: 'https://the-guild.dev/blog',
29+
},
30+
github: {
31+
title: 'GitHub',
32+
type: 'page',
33+
href: 'https://github.com/ardatan/graphql-mesh',
34+
},
35+
'the-guild': {
36+
title: 'The Guild',
37+
type: 'menu',
38+
items: {
39+
'about-us': {
40+
title: 'About Us',
41+
href: 'https://the-guild.dev/about-us',
42+
},
43+
'brand-assets': {
44+
title: 'Brand Assets',
45+
href: 'https://the-guild.dev/logos',
46+
},
4847
},
4948
},
49+
'graphql-foundation': {
50+
title: 'GraphQL Foundation',
51+
type: 'page',
52+
href: 'https://graphql.org/community/foundation/',
53+
},
54+
// #endregion
5055
};
56+
57+
export default meta;

website/src/app/page.tsx

Lines changed: 0 additions & 3 deletions
This file was deleted.

website/src/components/hive-layout/hive-inner-layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export async function HiveInnerLayout({
4848
}) {
4949
const [meta, ...pageMap] = await getPageMap();
5050

51-
const productsPage = pageMap.find(p => 'name' in p && p.name === 'products')!;
52-
// @ts-expect-error -- this should be fixed in Nextra, without route, the collapsible doesn't work
53-
productsPage.route = '#';
51+
// const productsPage = pageMap.find(p => 'name' in p && p.name === 'products')!;
52+
// // @ts-expect-error -- this should be fixed in Nextra, without route, the collapsible doesn't work
53+
// productsPage.route = '#';
5454

5555
return (
5656
<NextraLayout

website/src/content/docs/transforms/cache.mdx.bak

Lines changed: 0 additions & 157 deletions
This file was deleted.

0 commit comments

Comments
 (0)