Skip to content

Commit

Permalink
docs: bump @theguild/components and migrate (#549)
Browse files Browse the repository at this point in the history
Co-authored-by: enisdenjo <denis@denelop.com>
  • Loading branch information
gilgardosh and enisdenjo authored Mar 25, 2024
1 parent 6013eb5 commit 8f905bd
Show file tree
Hide file tree
Showing 7 changed files with 714 additions and 909 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
prId: ${{ github.event.pull_request.number }}
websiteDirectory: website
buildScript: yarn build
artifactDir: dist
artifactDir: out
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_modules/
lib/
umd/
dist/
out/
.vscode/
.yarn/*
!.yarn/releases
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ lib
umd
docs
dist
out
CHANGELOG.md
.next
website/src/pages/docs
Expand Down
5 changes: 4 additions & 1 deletion website/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// @ts-expect-error the guild's next config doesnt have types
import { withGuildDocs } from '@theguild/components/next.config';
export default withGuildDocs();
export default withGuildDocs({
output: 'export',
});
6 changes: 3 additions & 3 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"scripts": {
"start": "next",
"type-check": "tsc --noEmit",
"build": "next build && next-sitemap --config next-sitemap.config.cjs && next export -o dist"
"build": "next build && next-sitemap --config next-sitemap.config.cjs"
},
"dependencies": {
"@theguild/components": "^6.0.0",
"@theguild/components": "^6.4.0",
"clsx": "^2.0.0",
"next": "^13.5.4",
"next": "^14.1.4",
"next-sitemap": "^4.2.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
6 changes: 4 additions & 2 deletions website/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { defineConfig } from '@theguild/components';
import { defineConfig, PRODUCTS } from '@theguild/components';

export default defineConfig({
siteName: 'WS',
websiteName: PRODUCTS.WS.name,
description: PRODUCTS.WS.title,
docsRepositoryBase: 'https://github.com/enisdenjo/graphql-ws',
logo: PRODUCTS.WS.logo({ className: 'w-9' }),
});
Loading

0 comments on commit 8f905bd

Please sign in to comment.