docusaurus icon indicating copy to clipboard operation
docusaurus copied to clipboard

docs: add more package executers

Open Jay-Karia opened this issue 1 year ago • 5 comments

Have you read the Contributing Guidelines on issues?

Description

In this page, the initialization of the project with typescript has the following command: npx create-docusaurus@latest my-website classic --typescript, it is using npx, we can add other package executors for yarn and pnpm.

Such as: yarn: yarn dlx pnpm: pnpm dlx.

Other pages with the same issue: https://docusaurus.io/docs/i18n/git#initialization https://docusaurus.io/blog/releases/3.0#query-string-data-attributes https://docusaurus.io/docs#fast-track https://docusaurus.io/docs/next/installation#scaffold-project-website

Self-service

  • [X] I'd be willing to address this documentation request myself.

Jay-Karia avatar Jul 30 '24 16:07 Jay-Karia

Yes, we could, although it's not a significant win since users can still use their preferred package manager afterward.

Also, this requires us to use tabs for package managers now, and I don't think the remark plugin we use supports npx to yarn/pnpm conversions

https://github.com/nebrelbug/npm-to-yarn

slorber avatar Aug 01 '24 10:08 slorber

Submitted an issue for a new feautre to the plugin used.

Will work on this.

Jay-Karia avatar Aug 01 '24 11:08 Jay-Karia

Thanks, we'll track that issue: https://github.com/nebrelbug/npm-to-yarn/issues/48

slorber avatar Aug 01 '24 12:08 slorber

May i work on this issue?

dibyajyoti-mandal avatar Oct 01 '24 06:10 dibyajyoti-mandal

I'd prefer to work on this myself later. I'm not sure we want to present package manager tabs as a first encounter to new users. Sometimes having less choice is a feature, not a bug.

A choice implies an extra cognitive load so we should probably use this sparingly.

On their first encounter with Docusaurus, users not familiar with the Node.js ecosystem should rather not have to make any decision, and just execute commands we give them directly.

slorber avatar Oct 01 '24 07:10 slorber