Skip to content

brazethatwallace/braze-docs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

115,476 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Braze icon

Welcome to Braze Docs!

Releases · Deployments

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

# Partner hub tiles (Sanity) fetch automatically when `partner_api: true` in `_config.yml`.
# To skip that network call (offline / faster builds): PARTNER_API=false rake

# to render content in '{% markdown_embed %}' tags (e.g. Developer Guide changelogs):
MARKDOWN_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. Technology Partners hub tiles load from Sanity whenever partner_api is enabled in _config.yml (the default). Use PARTNER_API=false if you need to skip that network request locally.

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.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 43.8%
  • HTML 22.4%
  • JavaScript 12.3%
  • Ruby 10.6%
  • SCSS 9.2%
  • Shell 1.1%
  • Other 0.6%