Skip to content

Commit 38eaa1d

Browse files
Hive Docs x Nextra 4 (#6089)
Co-authored-by: Dimitri POSTOLOV <[email protected]>
1 parent 7d48056 commit 38eaa1d

File tree

256 files changed

+2256
-2225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+2256
-2225
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"eslint-plugin-tailwindcss": "npm:@hasparus/[email protected]",
8484
"fs-extra": "11.2.0",
8585
"graphql": "16.9.0",
86+
"gray-matter": "4.0.3",
8687
"jest-snapshot-serializer-raw": "2.0.0",
8788
"pg": "8.13.1",
8889
"prettier": "3.4.2",

packages/web/docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ build
33
temp
44
public/sitemap.xml
55
public/changelog.json
6+
public/_pagefind/

packages/web/docs/mdx-components.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { useHiveMDXComponents as useMDXComponents } from '@theguild/components/server';

packages/web/docs/next-env.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
/// <reference types="next/navigation-types/compat/navigation" />
43

54
// NOTE: This file should not be edited
6-
// 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.

packages/web/docs/next.config.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import { withGuildDocs } from '@theguild/components/next.config';
22

33
export default withGuildDocs({
4-
nextraConfig: /** @satisfies import("nextra").NextraConfig*/ ({
5-
themeConfig: './src/theme.config.tsx',
6-
autoImportThemeStyle: false,
7-
}),
84
output: 'export',
9-
basePath: process.env.NEXT_BASE_PATH,
105
eslint: {
116
ignoreDuringBuilds: true,
127
},
13-
8+
experimental: {
9+
turbo: {
10+
treeShaking: true,
11+
},
12+
},
13+
nextraConfig: {
14+
contentDirBasePath: '/docs',
15+
},
1416
redirects: async () => [
1517
{
1618
source: '/docs/get-started/organizations',
@@ -245,7 +247,9 @@ export default withGuildDocs({
245247
permanent: true,
246248
},
247249
],
248-
swcMinify: true,
250+
env: {
251+
SITE_URL: 'https://the-guild.dev/graphql/hive',
252+
},
249253
webpack: (config, { webpack }) => {
250254
config.externals['node:fs'] = 'commonjs node:fs';
251255
config.externals['node:path'] = 'commonjs node:path';

packages/web/docs/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,37 @@
44
"private": true,
55
"scripts": {
66
"build": "next build && next-sitemap",
7-
"dev": "next",
7+
"dev": "next --turbopack",
8+
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind",
89
"validate-mdx-links": "pnpx [email protected] --files 'src/**/*.mdx'"
910
},
1011
"dependencies": {
1112
"@radix-ui/react-accordion": "1.2.2",
1213
"@radix-ui/react-icons": "1.3.2",
1314
"@radix-ui/react-tabs": "1.1.2",
1415
"@radix-ui/react-tooltip": "1.1.6",
15-
"@tailwindcss/typography": "0.5.16",
16-
"@theguild/components": "7.6.3",
17-
"clsx": "2.1.1",
16+
"@theguild/components": "9.2.0",
1817
"date-fns": "4.1.0",
19-
"next": "14.2.23",
20-
"react": "18.3.1",
18+
"next": "15.1.0",
19+
"react": "19.0.0",
2120
"react-avatar": "5.0.3",
2221
"react-countup": "6.5.3",
23-
"react-dom": "18.3.1",
22+
"react-dom": "19.0.0",
2423
"react-icons": "5.4.0",
25-
"tailwind-merge": "2.6.0",
26-
"tailwindcss-animate": "1.0.7",
27-
"tailwindcss-radix": "3.0.5"
24+
"tailwind-merge": "2.6.0"
2825
},
2926
"devDependencies": {
27+
"@tailwindcss/typography": "0.5.16",
3028
"@theguild/tailwind-config": "0.6.2",
3129
"@types/react": "18.3.18",
3230
"@types/rss": "^0.0.32",
3331
"next-sitemap": "4.2.3",
32+
"pagefind": "^1.2.0",
3433
"postcss": "8.4.49",
3534
"postcss-nesting": "^13.0.1",
3635
"rss": "1.2.2",
37-
"tailwindcss": "3.4.17"
36+
"tailwindcss": "3.4.17",
37+
"tailwindcss-animate": "1.0.7",
38+
"tailwindcss-radix": "3.0.5"
3839
}
3940
}

packages/web/docs/public/favicon.svg

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

0 commit comments

Comments
 (0)