Contribute docs
Please review this guidance before issuing pull requests into the Arbitrum docs repository. This guidance helps us streamline and scale our efforts. Thank you!
This document is currently in public preview and may change significantly as feedback is captured from readers like you. Click the Request an update button at the top of this document or join the Arbitrum Discord to share your feedback.
The docs.arbitrum.io
docs portal is the single source of truth for documentation that supports Offchain Labs' product portfolio. This includes documentation for:
- Building dApps with Arbitrum's chains.
- Bridging tokens to Arbitrum's chains.
- Running an Arbitrum node.
- Launching a self-managed chain using Arbitrum Orbit.
- Educational materials that explain how these technologies work.
Contributions to each of these content areas are welcome from the entire Ethereum community.
This document provides an overview of the protocols and content conventions that we use to craft, organize, and publish documentation. Familiarity with Markdown syntax, Github, and Docusaurus is expected.
Protocols
The following protocols help us process contributions efficiently:
New "core docs" protocol
If a document isn't in the Third-party content
sidebar node, it's a core document.
Although Offchain Labs is responsible for producing and maintaining core docs, contributions are welcome from all. To contribute a new core doc:
- Begin by creating a branch of the Arbitrum docs repo.
- Issue a
Draft
pull request from your branch intomaster
. Pull requests intomaster
generate a preview of your changes via a branch-specific Docusaurus deployment; this preview will update as you push commits to your remote branch. - Include answers to the following questions in your PR description:
1. Audience: Who am I writing for?
2. Problem: What specific problem are they trying to solve?
3. Discovery: How are they looking for a solution to this problem? What search terms are they using?
4. Document type: Which document type is most suitable?
5. Validated demand: How do we know that this documentation is actually needed?
6. Policy acknowledgment (Third-party docs only): Do you agree to the third-party content policy outlined within "Contribute docs"? - As you craft your contribution, refer to the document types, Style guidance, and other conventions below.
- Mark your PR as
Open
when it's ready for review.
New "third-party docs" protocol
Third-party docs are documents that help readers of Arbitrum docs use other products, services, and protocols (like the ones listed in the Arbitrum portal) with Arbitrum products. These documents are generally authored by partner teams, but can be authored by anyone.
The protocol for creating new third-party docs is the same as that of Creating new core documents, with the following additions:
- Eligibility
- Third-party docs are intended to support products listed in the Arbitrum portal, or infrastructure and services that those products use.
- To submit your project to the Arbitrum portal, apply using this Google form.
- Purpose
- The purpose of our
Third-party docs
sections is to meet Arbitrum developer (or user) demand for guidance that helps them use non-Arbitrum products with Arbitrum products. - It's not meant to drive traffic to your product (although that may happen); it's meant to solve problems that our readers are actually facing, which are directly related to Arbitrum products.
- Partner products that support Arbitrum products aren't automatically eligible; we need to be able to prove to ourselves that our readers actually need the proposed third-party content.
- The purpose of our
- Maintenance expectations
- Offchain Labs can't commit to maintaining third-party docs, but we make it easy for you to maintain them.
- Ensure that your document's YAML frontmatter contains a
third_party_content_owner
property, with the Github username of the designated maintainer. This person will be assigned to your document's issues and PRs, and will be expected to resolve them in a timely manner.
- Organization
- Third-party docs are organized within the
Third-party content
node located at the bottom of each documentation section's sidebar. - This node's content is grouped by third-party product. If/when this becomes unwieldy, we'll begin grouping products by portal category.
- Third-party docs are organized within the
- Limited document types
- To manage our team's limited capacity, third-party documents must be either Quickstarts, How-tos, or Concepts. See document types below for guidance.
- Incremental contributions: One document at a time, procedures first
- Third-party document PRs should contain at most one new document.
- Any given product's first docs contribution should be a Quickstart or How-to.
- Additional documents will be merged only if we can verify that our readers are deriving value from your initial contribution.
- The way that we verify this isn't yet formally established, and it isn't publicly disclosed. Our current approach combines a number of objective and subjective measures.
- Policy acknowledgment
- Before merging third-party documentation PRs, we ask contributors to acknowledge that they've read, understood, and agree with the following policies:
- Content ownership: As the author, you retain ownership of and responsibility for the content you contribute. You're free to use your content in any way you see fit outside of Arbitrum's docs. Remember that when contributing content to our documentation, you must ensure you have the necessary rights to do so, and that the content doesn't infringe on the intellectual property rights of others.
- License for use: By contributing your content to our documentation, you grant Offchain Labs a non-exclusive, royalty-free license to use, reproduce, adapt, translate, distribute, and display the content in our documentation. This allows us to integrate your content into our docs and make it available to all users.
- Right to modify or remove: Offchain Labs reserves the right to modify or remove third-party content from our documentation at any time. This might be necessary due to a range of reasons, such as content becoming outdated, receiving very low pageviews over an extended period, or misalignment with our guidelines or goals.
- Before merging third-party documentation PRs, we ask contributors to acknowledge that they've read, understood, and agree with the following policies:
Update request protocol
If you'd like to request an update or share a suggestion related to an existing document without submitting a pull request to implement the improvement yourself, click the Request an update
button located at the top of each published document. This button will lead you to a prefilled Github issue that you can use to elaborate on your request or suggestion.
Content conventions
Offchain Labs supports Arbitrum docs and Prysm docs. The following content conventions help us maintain consistency across these documentation sets:
Document type conventions
Every document should be a specific type of document. Each type of document has its own purpose:
Document type | Purpose | Example(s) to refer to |
---|---|---|
Gentle introduction | Onboard a specific reader audience with tailored questions and answers | A gentle introduction to Orbit |
Quickstart | Onboard a specific reader audience with step-by-step "learn by doing" instructions | Quickstart: Build dApps |
How-to | Provide task-oriented procedural guidance | How to run a local dev node |
Concept | Explain what things are and how they work | Token bridging Nodes and networks |
FAQ | Address frequently asked questions | FAQ: Run a node |
Troubleshooting | List common troubleshooting scenarios and solutions | Troubleshooting: Run a node |
Reference | Lists and tables of things, such as API endpoints and developer resources | RPC endpoints and providers |
This isn't an exhaustive list, but it includes most of the document types that we use.
Style conventions
The following style guidelines provide a number of loose recommendations that help us deliver a consistent content experience across our docs:
- Casing
- Sentence-case "content labels": document titles, sidebar titles, menu items, section headers, etc.
- Linking
- Avoid anchoring links to words like "here" or "this". Descriptive anchor text can help set expectations for readers who may hesitate to click on ambiguous links.
- Separate procedural from conceptual (most of the time)
- Within procedural docs like how-tos and quickstarts, avoid including too much conceptual content. Provide only the conceptual information that the target reader needs in order to complete the task at hand. Otherwise, organize conceptual information within conceptual docs, and link to them "just in case" from other docs.
- Voice
- Address the reader as "you".
- Write like you'd speak to a really smart friend who's in a rush.
- Opt for short, clear sentences that use translation-friendly, plain language.
- Use contractions wherever it feels natural - this can help convey a friendly and conversational tone.
- Formality
- Don't worry too much about formality. The most valuable writing is writing that provides value to readers, and readers generally want to "flow" through guidance.
- Aim at "informal professionalism" that prioritizes audience-tailored problem-solving and consistent style and structure.
- Targeting
- Don't try to write for everyone; write for a specific reader persona (also referred to as "audience" in this document) who has a specific need.
- Make assumptions about prior knowledge (or lack thereof) and make these assumptions explicit in the beginning of your document.
- Flow
- Set expectations: Begin documents by setting expectations. Who is the document for? What value will it provide to your target audience? What assumptions are you making about their prior knowledge? Are there any prerequisites?
- Value up front: Lead with what matters most to the reader persona you're targeting. Then, progressively build a bridge that carries them towards task completion as efficiently as possible.
- Cross-linking
- We want to maintain both high discoverability and high relevance. As a general rule of thumb, links to other docs should be "very likely to be useful for most readers". Every link is a subtle call to action; we want to avoid CTA overload.
- Things to avoid
- Symbols where words will do: Minimize usage of
&
and/
- spell out words like "and" and "or". - Jargon: Using precise technical terminology is ok, as long as your target audience is likely to understand the terminology. When in doubt, opt for clear, unambiguous, accessible language.
- Symbols where words will do: Minimize usage of
Don't stress too much about checking off all of these boxes; we periodically review and edit our most heavily-trafficked docs, bringing them up to spec with the latest style guidelines.
Some important disclaimers:
- This isn't an exhaustive list. These are just the min-bar guidelines that will be applied to all new content moving forward.
- Many of our docs don't yet follow this guidance. Our small-but-mighty team is working on it! If you notice an obvious content bug, feel free to submit an issue or PR.
Banner conventions
You can use banners (Docusaurus refers to them as "admonitions") to set expectations for your readers and to emphasize important callouts. Use these conservatively, as they interrupt the flow of the document.
Public preview content banner
Example:
This document is currently in public preview and may change significantly as feedback is captured from readers like you. Click the Request an update button at the top of this document or join the Arbitrum Discord to share your feedback.
Usage:
import PublicPreviewBannerPartial from '../partials/_public-preview-banner-partial.md';
<PublicPreviewBannerPartial />
Under construction banner
Example:
The following steps are under construction and will be updated with more detailed guidance soon. Stay tuned, and don't hesitate to click the Request an update
at the top of this document if you have any feedback along the way.
Usage:
:::caution UNDER CONSTRUCTION
The following steps are under construction and will be updated with more detailed guidance soon. Stay tuned, and don't hesitate to click the `Request an update` at the top of this document if you have any feedback along the way.
:::
Community member contribution banner
Example:
The following document was contributed by @todo-twitter-handle. Give them a shoutout if you find it useful!
Usage:
:::info Community member contribution
The following document was contributed by @todo-twitter-handle. Give them a shoutout if you find it useful!
:::
Organization conventions
Our published docs are generally organized like this in the sidebar:
📄 Gentle introduction
📄 Quickstart
📂 How-tos
📄 Write a smart contract
📂 Concepts
📄 Smart contract
📁 Reference
📄 Troubleshooting
📄 FAQ
📄 Glossary
📄 Contribute docs
📂 Third-party content
📁 Product A
📂 Product B
📄 How to test your smart contract using Product B
- This isn't a strict requirement; it's a loose guideline.
- Not all product areas have all types of content.
- Deviating from this pattern can make important content more discoverable to readers. For example, Developer tools and resources is a root-level collection of reference-type content.
- The sidebar structure that you see in our published docs is determined by the
sidebars.js
file located at the root of thewebsite
directory.- You may notice that our sidebars are currently organized using plain-old objects that specify individual files and folders.
- We're moving away from this "manual configuration" and towards convention-based auto-generated sidebars.
- To ensure that this new approach works with your docs, all net-new content should be organized within a folder structure that matches the desired sidebar structure.
Frequently asked questions
Can I point to my product from core docs? For example - if my product hosts a public RPC endpoint, can I add it to your RPC endpoints and providers page?
These types of contributions are generally not merged unless they're submitted by employees of Offchain Labs.
Instead of opening a PR for this type of contribution, click the Request an update
button at the top of the published document to create an issue. Generally, third-party services are included in core docs only if we can confidently assert that the services are "trustworthy, highly relevant to the core document at hand, and battle-tested by Arbitrum developers" under a reasonable amount of scrutiny.
Can I use AI-generated content?
"No". By issuing PRs into our docs repo, you're acknowledging that your content has been produced organically. Content produced under the influence of AI/ML tooling, such as ChatGPT, is "strictly not allowed".
Should I be wary of contributing to FAQs and Glossaries? It looks like there are some automations configured against these document types.
You're right! We draft FAQs and Glossaries on Notion to make it easier for nontechnical internal contributors to contribute. This content is then published to our docs repo using a script that reads from Notion and writes to Markdown.
You can still submit changes to the Glossary and FAQ markdown files; we manually synchronize these types of changes with Notion content whenever we need to.