Development Environment
You will need Volta and pre-commit installed. If you don't have opinions about the process, this will get you going:
Copied
# Install Homebrew and everything mentioned above
bin/bootstrapOnce you have the required system dependencies:
Copied
# Install or update application dependencies
makeNow run the development webserver:
Copied
yarn startYou will now be able to access docs via http://localhost:3000.
Linting
A few linters are available. Run yarn lint to apply them all.
Additionally we use prettier to format our code. Run prettier if you get linting errors in CI:
Copied
yarn prettier:fixIf you want to run prettier on mdx and markdown files, run
Copied
yarn prettier:fix:allFaster builds
Disable image thumbnail generation with DISABLE_THUMBNAILS=1 yarn build. Images will not work while in this mode, but builds will be significantly faster.
You can edit this page on GitHub.