This is the repository for the official documentation of NEAR Protocol, a user-friendly and carbon-neutral blockchain, built from the ground up to be performant, secure, and infinitely scalable.
Check out the following links:
- Deployed, live documentation: https://docs.near.org
- Example applications: https://github.com/near-examples
- Community chat: https://near.chat
This documentation site is built with Mintlify.
- Node.js 20.17.0 or newer
- The Mintlify CLI
npm i -g mintFrom the repository root, start the local preview server:
mint devThe site will be available at http://localhost:3000.
NEAR uses Mintlify for documentation. Content is written in MDX and configured through docs.json at the repository root.
For simple content changes you have 2 options:
- Submit an issue
- Submit a pull request (we prefer PRs of course)
This is the fastest way to submit content changes directly from the page where you notice a mistake.
- Open any page in the docs on https://docs.near.org
- Click the
[ Edit ]button at the top right hand side of every content page - Make your edits to the document that opens in GitHub by clicking the ✎ (pencil) icon
- Submit a PR with your changes and comments for context
This is the standard fork-branch-commit workflow for submitting pull requests to open-source repositories:
-
Fork this repo to your own GitHub account (or just clone it directly if you are currently a member of NEAR)
-
Open your editor to the top level repo folder to view the directory structure as seen below
-
Install the Mintlify CLI if you do not already have it:
npm i -g mint- From the repository root, run the local docs development server:
mint devExpected result
The Mintlify preview starts locally and serves the docs at http://localhost:3000.
-
Make changes to the docs
-
Observe those changes reflected in the local preview
-
Submit a pull request with your changes and comments for context
The repo is organized around Mintlify content and configuration:
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE-APACHE.txt
├── LICENSE-MIT.txt
├── README.md
├── docs.json <-- Mintlify site configuration and navigation
├── index.mdx <-- homepage
├── openapi.json <-- API reference source for Mintlify API docs
├── styles.css <-- custom site styling
├── api/ <-- API and RPC docs
├── assets/ <-- images and static assets
├── chain-abstraction/
├── data-infrastructure/
├── getting-started/
├── primitives/
├── protocol/
├── smart-contracts/
├── snippets/ <-- reusable MDX/JSX snippets and components
├── tools/
└── web3-apps/
For broken links internal to the docs, please submit an issue or PR request as per above.
If you found a broken link from a Google search, please request to remove it from their index here: https://www.google.com/webmasters/tools/removals
Before opening a pull request, start the local Mintlify preview from the repository root and verify the pages you changed load correctly without console errors:
mint dev
mint broken-links