This repository contains the content and build workflow for the official npm documentation site.
- Install dependencies:
npm install
- Start the local development server:
The site will be available at http://localhost:8000.
npm run develop
- Edit documentation content:
- The documentation is written in MDX (Markdown + JSX).
- Make changes in the
content
directory.
- Preview changes:
- Gatsby watches for file changes and hot-reloads the site instantly.
- Review your edits at http://localhost:8000.
- Submit your changes:
- Commit your updates and open a pull request at https://github.com/npm/documentation.
- The CI workflow will publish your PR to a GitHub Preview Page for review.
- Deploy:
- Once your PR is approved and merged, the site will be automatically deployed via GitHub Actions.
We welcome contributions! Please read our contributing guide for instructions and best practices.
content/
— All documentation pages (MDX format)src/
— Site configuration, custom components, and theme overrides.github/workflows/publish.yml
— CI/CD workflow for building and deploying the site
© npm, Inc.