Skip to content

Commit e6a422b

Browse files
committed
[docs] set LC_ALL when building API docs locally
1 parent f547744 commit e6a422b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Diff for: docs/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"lint-and-vale": "yarn run lint && yarn run vale",
1919
"generate-code-imports": "node scripts/generate-code-imports.js",
2020
"rebuild-kinds-tags": "python scripts/rebuild-kinds-tags.py",
21-
"sync-api-docs": "/bin/sh scripts/build-api-docs.sh",
22-
"build-api-docs": "/bin/sh scripts/build-api-docs.sh"
21+
"sync-api-docs": "./scripts/build-api-docs.sh",
22+
"build-api-docs": "./scripts/build-api-docs.sh"
2323
},
2424
"dependencies": {
2525
"@docusaurus/core": "^3.7.0",

Diff for: docs/scripts/build-api-docs.sh

100644100755
+6-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@
1010
set -e
1111

1212
# Vercel-specific commands and configurations
13-
if ! [[ "$OSTYPE" =~ "darwin"* ]]; then
13+
if [[ "$OSTYPE" =~ "darwin"* ]]; then
14+
# Required to resolve `locale.Error: unsupported locale setting`
15+
if [ -z "$LC_ALL" ]; then
16+
export LC_ALL=en_US.UTF-8
17+
fi
18+
else
1419
echo "Detected non-Darwin host. Running Vercel-specific commands and configurations"
1520

1621
# Required to resolve `locale.Error: unsupported locale setting`

0 commit comments

Comments
 (0)