Skip to content

📝 Documentation: Add an npm2yarn equivalent for installation instructions in docs site #151

Description

@JoshuaKGoldberg

Bug Report Checklist

Overview

The three code blocks under Installation on the docs site are a lot of vertical space:

Screenshot of the three code blocks for installing in npm, yarn, and pnpm on the docs site

It'd be nice to use something like the popular @docusaurus/remark-plugin-npm2yarn to turn that into a single tabbed area. Accepting PRs!

Additional Info

An example of the npm2yarn plugin in the wild is on https://typescript-eslint.io/getting-started/#step-1-installation:

Screenshot of https://typescript-eslint.io/getting-started/#step-1-installation showing the npm and yarn installation tabs

...though npm2yarn, as its name suggests, doesn't seem to support pnpm in that tab example. Maybe a new package needs to be made? Or a configuration option added somewhere?

I haven't found any TypeDoc plugin that does this (though admittedly I haven't looked very hard). I think finding an existing plugin would be the best solution, or if one doesn't exist creating it. That way other folks can benefit from this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: documentationImprovements or additions to docs 📝status: accepting prsPlease, send a pull request to resolve this! 🙏type: featureNew enhancement or request 🚀

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions