Arbitrum Docs, built with docusaurus; docs are live at https://developer.arbitrum.io/.
Arbitrum SDK auto-genned docs are included as submodule.
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 Orbit 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 documentationstylus/- Stylus smart contract developmentstylus-by-example/- Generated Stylus exampleswelcome/- 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 scripts and content generatorstheme/- Docusaurus theme customizations
arbitrum-sdk/- Git submodule containing SDK source codestylus-by-example/- Git submodule containing Stylus examplesscripts/- Repository maintenance and build scriptsstatic/- 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, as well as the glossary page — requires 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.
git clone git@github.com:OffchainLabs/arbitrum-docs.gitcd arbitrum-docsgit submodule update --init --recursive
Install node dependencies
yarnTo start a build server to serve the docs site locally, run this command from the root directory:
yarn startThis command will both generate the arbitrum-sdk docs from the submodule and start the local server. In order to update the arbitrum-sdk docs, you will need to run this command again every time you update files in arbitrum-sdk directory.
While in the root directory, this command will build the site:
yarn buildTo test the build locally, you can use the following command:
yarn servearbitrum-sdk repo:
git submodule update --remote arbitrum-sdkYou 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 (arbitrum-docs).
- From the root directory, run
yarn check-redirects.