forked from mkredpoint/braze-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
464625d
commit f486540
Showing
29 changed files
with
370 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
let build_app = 1; | ||
let branch_commit = process.env.VERCEL_GIT_COMMIT_REF || ''; | ||
let branch_check = process.env.BRANCH_CHECK || ''; | ||
let vercel_env = process.env.VERCEL_ENV || 'preview'; | ||
|
||
// For develop and master branches, always build to make sure everything is updated | ||
if ((vercel_env == 'preview') && (branch_commit != 'develop')) { | ||
// For staging, check if it's a build from a language branch | ||
// Cancel if it doesn't match expected branch | ||
if (branch_check.includes('l10n_') || branch_commit.includes('l10n_')) { | ||
build_app = 0; | ||
if (branch_check && (vercel_env == 'preview')) { | ||
if (branch_commit == branch_check) { | ||
build_app = 1; | ||
} | ||
} | ||
} | ||
} | ||
|
||
process.exit(build_app); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Site settings | ||
title: Braze Documentation | ||
email: [email protected] | ||
description: >- # this means to ignore newlines until "baseurl:" | ||
Welcome to Braze Documentation. Braze provides a comprehensive user engagement solution for your mobile apps. | ||
baseurl: "/docs/fr" # the subpath of your site, e.g. /blog | ||
homeurl: "https://www.braze.com" # the base hostname & protocol for your site, e.g. http://example.com | ||
twitter_username: Braze | ||
github_username: braze-inc | ||
|
||
language: fr | ||
|
||
destination: _site/docs/fr | ||
|
||
# Source dir | ||
source: '.' | ||
|
||
# Allows the DocSearch element to be inspected. Set to true locally, but don't | ||
# check in in that state, or it will cause undesirable behavior in prod. | ||
search_debug: false | ||
|
||
# For local testing, set to false to increase build time by not pulling partner api | ||
# and markdown data. MAKE SURE TO TURN BACK ON PRIOR TO COMMIT. | ||
partner_api: true | ||
markdown_api: true | ||
|
||
# gitHub config | ||
github_baseurl: 'https://github.com/braze-inc/braze-docs/blob/develop/_lang/_fr' | ||
|
||
# Collections directory | ||
collections_dir: _lang/_fr | ||
|
||
|
||
collections: | ||
home: | ||
title: Documentation | ||
user_guide: | ||
title: User Guide | ||
developer_guide: | ||
title: Developer Guide | ||
api: | ||
title: API | ||
partners: | ||
title: Technology Partners | ||
help: | ||
title: Help | ||
hidden: # Hidden pages not directly linked via navigation | ||
title: Braze | ||
docs_pages: # Site specific pages. ie main redirects and search | ||
title: Braze | ||
|
||
|
||
# Image asset pipeline setting for japr | ||
asset_pipeline: | ||
display_path: docs/fr/assets | ||
|
||
# Algolia Search index | ||
algolia: | ||
index_name: "DocSearch_French" # You can replace that with whatever name you want | ||
files_to_exclude: | ||
- _lang/_fr/_hidden/* | ||
- _lang/_fr/_hidden/*/* #exclude hidden subdirectories from indexing | ||
- _lang/_fr/_hidden/*/*/* #exclude additional hidden subdirectories from indexing | ||
- _lang/_fr/_docs_pages/* | ||
- _lang/_fr/_docs_pages/*/* #exclude hidden subdirectories from indexing | ||
- _lang/_fr/_docs_pages/*/*/* #exclude additional hidden subdirectories from indexing | ||
- _lang/_fr/_home/Styling_Test_Page.md |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
files: | ||
- source: /_docs/ | ||
translation: /_lang/_%two_letters_code%/%original_file_name% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.