Skip to content

Contributing to Braze Docs

Thanks for contributing to Braze Docs! Every Tuesday and Thursday, we merge community contributions and deploy them to Braze Docs. Use this guide to get your changes merged during our next deployment.

Prerequisites

Some understanding of Git is required to contribute to Braze Docs. If you’re new to Git and don’t know where to start, see Git Book: Getting Started. If you just need a refresher, see Git and GitHub.

Step 1: Sign the CLA

Everybody that contributes to Braze Docs must sign the Contribution License Agreement (CLA). If you don’t sign the CLA, the @cla-bot on GitHub will automatically block your pull request.

Step 2: Set up your environment

Before you can make complex or multi-page changes to Braze Docs, you need to set up your local environment. However, small single-document changes can be completed directly in GitHub.

Step 2.1: Get the required software

At a minimum, you need a terminal, a text editor, and a ruby version manager. If you’re not sure where to start, see the following.

Step 2.2: Set up your GitHub account

Next, create a GitHub account and set up your SSH key.

Step 2.3: Fork the repository

Open the Braze Docs GitHub repository, then select Fork.

The Braze Docs GitHub repository showing "Fork".

Keep the default settings, then select Create fork.

The Braze Docs GitHub repository showing "Create fork".

In your forked repository, select Code > SSH > Copy.

An example forked repository with the "Code" dropdown open showing the "Copy" option.

In your terminal, open your home directory, then clone the Braze Docs repository.

1
2
cd ~
git clone [email protected]:braze-inc/braze-docs.git

Step 2.4: Install Ruby

To generate a local site preview, you’ll need Ruby version 3.3.0 installed. In the terminal, open braze-docs and check for Ruby version 3.3.0.

1
2
cd ~/braze-docs
ruby --version

If this version isn’t installed, use a supported version manager to install Ruby version 3.3.0. For example, using rbenv:

1
rbenv install 3.3.0

Step 2.5: Install dependencies

Next, install the dependencies for Braze Docs. These are small programs used to generate your local Braze Docs site.

1
bundle install

Next steps

If you’re new to Git or docs-as-code, start with our tutorial: Your first contribution. Otherwise, check out one of the following.

HOW HELPFUL WAS THIS PAGE?
New Stuff!