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

Update to Docusaurus v3 #5387

Open
wants to merge 20 commits into
base: next
Choose a base branch
from
Open

Update to Docusaurus v3 #5387

wants to merge 20 commits into from

Conversation

roy9495
Copy link

@roy9495 roy9495 commented Jan 24, 2024

Closes #5217

🎯 Changes

Updated to Docusaurus v3
Changed mdx fixes accordingly

βœ… Checklist

  • I have followed the steps listed in the Contributing guide.
  • If necessary, I have added documentation related to the changes made.
  • I have added or updated the tests related to the changes made.

@roy9495 roy9495 requested review from a team as code owners January 24, 2024 22:44
Copy link

vercel bot commented Jan 24, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
trpc-next-app-dir ❌ Failed (Inspect) Feb 11, 2024 7:40pm
www βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 11, 2024 7:40pm

Copy link

vercel bot commented Jan 24, 2024

@roy9495 is attempting to deploy a commit to the trpc Team on Vercel.

A member of the Team first needs to authorize it.

# Conflicts:
#	pnpm-lock.yaml
#	www/package.json
#	www/src/components/CompaniesUsing.tsx
@KATT
Copy link
Member

KATT commented Jan 25, 2024

Hey @roy9495! We really appreciate you looking into this.

Do you think you would be able to get it to a point where pnpm build works locally on the /www-folder?

@roy9495
Copy link
Author

roy9495 commented Jan 25, 2024

I tried to do that many times but it is showing me this error

pnpm install
Scope: all 36 workspace projects
 WARN  8 deprecated subdependencies found: @npmcli/[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
..                                       |   +4   -4 +-
..                                       | Progress: resolved 2837, reused 2690, downloaded 4, added 4, done
../node_modules/.pnpm/@[email protected]+id=%25252525252525252540exampleslegacy-next-starter/node_modules/prisma: Running preinstall script...
../node_modules/.pnpm/@[email protected]+id=%25252525252525252540examplestrpc-next-prisma-todomvc/node_modules/prisma: Running preinstall script...
../node_modules/.pnpm/@[email protected]+id=%25252525252525252540exampleslegacy-next-starter/node_modules/prisma: Runnin../node_modules/.pnpm/@[email protected]+id=%25252525252525252540examplestrpc-next-prisma-todomvc/node_modules/prisma: Running preinstall script, done in [email protected]+id=%25252525252525252540examplestrpc-next-prisma-starter/node_modules/prisma: R
../node_modules/.pnpm/@[email protected]+id=%25252525252525252540examplesnext-websockets-starter/node_modules/prisma: Running preinstall script, done in 163mss
.. postinstall$ pnpm codegen
β”‚ > root@ codegen /workspaces/trpc
β”‚ > run-p codegen:*
β”‚ > root@ codegen:override-prisma /workspaces/trpc
β”‚ > tsx scripts/addPrismaOverrides.ts
β”‚ > root@ codegen:entrypoints /workspaces/trpc
β”‚ > turbo codegen-entrypoints
β”‚ > root@ codegen:tests /workspaces/trpc
β”‚ > turbo codegen-tests
β”‚  ERROR  run failed: Package tasks (<package>#<task>) are not allowed in single-package repositories: found @examples/minimal-react#build
β”‚  ELIFECYCLE  Command failed with exit code 1.
β”‚  ERROR  run failed: Package tasks (<package>#<task>) are not allowed in single-package repositories: found @examples/minimal-react#build
β”‚  ELIFECYCLE  Command failed with exit code 1.
β”‚  ELIFECYCLE  Command failed.
β”‚ ERROR: "codegen:tests" exited with 1.
β”‚  ELIFECYCLE  Command failed with exit code 1.
└─ Failed in 4.2s at /workspaces/trpc
 ELIFECYCLE  Command failed with exit code 1.

@juliusmarminge
Copy link
Member

juliusmarminge commented Jan 26, 2024

Here's the errors I'm getting:

<iframe src="https://app.warp.dev/block/embed/iFOoh2Ytu43zTYxlauwjUg" title="embedded warp block" style="width: 1872px; height: 75523px; border:0; overflow:hidden;" allow="clipboard-read; clipboard-write"></iframe>

https://app.warp.dev/block/YLqekkwwndfcjXmjoaZuDW

@juliusmarminge
Copy link
Member

juliusmarminge commented Jan 31, 2024

Got it to build by disabling typedoc and prism-react-renderer.

typedoc might need a dependency bump to work with docusaurus 3?

prism idk why that didn't work, it complained that it was undefiend...

the shiki plugin also looks ancient (no update for 9 months) so maybe that's also incompatible with v3
CleanShot 2024-01-31 at 16 36 40

@parthmanhas
Copy link
Contributor

Hi @juliusmarminge, I created a new pull request here where I was able to build locally with typedoc files. I wanted to commit to this branch but did not have sufficient permissions.

@roy9495
Copy link
Author

roy9495 commented Feb 2, 2024

@parthmanhas Hey there! It looks like the build failed with the changes you made.

@roy9495
Copy link
Author

roy9495 commented Feb 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs/www: update docusaurus and typedoc
4 participants