Arbitrum Docs, built with docusaurus; docs are live at https://developer.arbitrum.io/.
This repository is organized as follows:
docs/: Main documentation content directoryarbitrum-bridge/: Bridge-related documentationbuild-decentralized-apps/: Developer guides and referencesfor-devs/: Developer tools and third-party integrationsfor-users/: User-focused documentationhow-arbitrum-works/: Technical explanations of Arbitrumintro/: Introduction and glossarylaunch-arbitrum-chain/: Arbitrum chain deployment guideslearn-more/: Additional learning resourcesnode-running/: Node operation guidespartials/: Reusable content components and troubleshooting guidesrun-arbitrum-node/: Node setup and configurationsdk/: Auto-generated SDK documentation—Do not editstylus/: Stylus smart contract developmentstylus-by-example/: Generated Stylus examples—Do not editwelcome/: Getting started content
src/: Docusaurus application source codecomponents/: React components for the documentation sitecss/: Styling and themespages/: Custom pages and landing pagesresources/: Global variables and configurationscripts/: Build scriptstheme/: Docusaurus theme customizations
submodules/: Git submodule containing SDK source codearbitrum-sdk/: Git submodule containing SDK source codestylus-by-example/: Git submodule containing Stylus examples
scripts/: Repository maintenance, build scripts, and content generatorsstatic/: Static assets (images, files, JSON data)
For most of the docs content, you can contribute by simply reviewing our docs contribution guidelines and opening a PR!
The following are the only exceptions:
-
Contributing to the three troubleshooting pages — nodes, builders, and users require internal Offchain Labs access. If you'd like to make a suggestion about content on any of those pages, open an issue ticket.
-
To request to have your project added to the 3rd party node providers page, use this form.
- Clone this repo
git clone git@github.com:OffchainLabs/arbitrum-docs.git- Install node dependencies
yarn- Update the submodules
git submodule update --init --recursive- Build
yarn build- Start the development server
yarn startTo start a build server to serve the docs site locally, run this command from the root directory:
yarn startWhile in the root directory, this command will build the site:
yarn buildTo test the build locally, you can use the following command:
yarn serveYou can add any terms to the glossary by following these steps:
Let's assume you need to add the term "State Transition Function" to the glossary.
- Create an
.mdxfile as follows:
docs/partials/glossary/_state-transition-function.mdx
- Ensure that the content of your file follows the following format:
---
title: State Transition Function
key: state-transition-function
titleforSort: State Transition Function
---
The STF (State Transition Function) defines how new blocks are produced from input messages (i.e., transactions) in an Arbitrum chain.- While in the root directory, run the following command:
npx tsx scripts/build-glossary.tsThis part will update the glossary.
- Commit your changes and open a PR.
- Run
yarn formatfrom the root directory.