This repository houses the NextJS application for mongoDB.design, the public documentation website for MongoDB's Leafygreen UI Library.
The Contentstack tokens can be found under Settings > Tokens > Delivery Tokens
.
- Run
yarn install
- If the package you want to link to has not been published yet, create an empty folder inside
node_modules/@leafygreen-ui/
with the name of the unpublished package you want to link to. E.g.node_modules/@leafygreen-ui/<unpublished-package-name>
- From
leafygreen-ui
directory, runyarn run link <path/to/design>
- Update
next.config.ts
to build linked files- Change line 76 to:
const LGModuleRegex = /(.+(node_modules\/@leafygreen-ui))|(.+(leafygreen-ui\/packages))/g;
- Change line 76 to:
- Run the dev server:
yarn dev