This repository contains the code responsible for building the Mergify Docs site.
Run a local server to see your changes.
-
Install NPM dependencies:
npm i
-
Start the local development environment:
npm start
Note that in dev mode like this, a page is built only when accessing it from the browser. So it may take a few seconds when navigating through pages.
You can build docs and run a preview close to how it's done in production
-
Build the docs
npm run build
-
Run the preview
npm run preview
Note that during the build, you can encounter some errors that you won't see in local dev. This is because you're building every single page, in opposite of a local dev server that builds pages when you visit them.