Skip to content

braze-inc/braze-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

112,218 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Braze icon

Welcome to Braze Docs!

This repository contains the source files for Braze Docs, which hosts all user, developer, partner, and API documentation for the Braze customer engagement platform.

If you'd like to help improve the docs, you can:

Quick start

Tip

For a full walkthrough, see Contributing to Braze Docs.

To build the docs locally, you'll need Ruby version 3.3.0 installed. In the terminal, open braze-docs and check for Ruby version 3.3.0.

cd ~/braze-docs
ruby --version

If this version isn't installed, use a supported version manager to install it. For example, using rbenv:

rbenv install 3.3.0

If you have multiple versions of Node.js installed, use asdf for version management.

brew install asdf

Next, install project dependencies.

bundle install && asdf install

To start your local docs server on localhost http://127.0.0.1:5006, run the following command. To stop your server, reopen the terminal and press Control + C.

# for 'en' language:
rake

# for other languages:
rake de
rake es
rake fr
rake ja
rake ko
rake pt_br

# to render content in '{% markdown_embed %}' tags:
MARKDOWN_API=true rake

# to render tiles on partner landing pages:
PARTNER_API=true rake

# to render both APIs:
MARKDOWN_API=true PARTNER_API=true rake

Note

Prepending MARKDOWN_API=true to your rake command lets you preview content within a {% markdown_embed %} tag, such as the content on the Developer Guide: Changelogs page. Prepending PARTNER_API=true lets you render the tiles on a partner landing page, such as Technology Partners.

Faster local builds

Jekyll spends a lot of I/O copying static assets (for example images under assets/). For day-to-day work you can:

  • Serve: rake already uses --incremental and _incremental_config.yml (keep_files for assets). Restarting the server no longer deletes .jekyll-metadata by default, so incremental state is preserved. Run JEKYLL_CLEAN=1 rake when you need a full clean rebuild.
  • One-off build: bundle exec rake docs_en:build_fast (English) or bundle exec rake "lang:build_fast[fr]" (other locales). Alternatively, JEKYLL_FAST=1 bundle exec rake docs_en:build enables the same merged config and --incremental for the standard build task.

About bdocs wrapper

bdocs is a wrapper script located in the root of this repository that helps you replace links, generate redirect URLs, create deployment descriptions, and more. For an in-depth walkthrough, see bdocs wrapper. To get started quickly, run the following command to see a list of available commands:

./bdocs

Creative Commons license

Braze Docs is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. For more information, see LICENSE.

Licence Icon

Code of conduct

At Braze, we expect respectful behavior from both administrators and contributors. For more information, see CODE_OF_CONDUCT.md.

About

The Braze Docs repository. Currently, external contributions are not permitted.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors