Skip to content

Commit 14301e3

Browse files
committed
CLDR-19231 site: also, backport from CLDR-19211
Partial cherry-pick from these commits to not cause cloudflare errors: - f4eb204 - 04c17fe
1 parent 097f614 commit 14301e3

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.github/workflows/site.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ jobs:
3434
with:
3535
ruby-version: 3.2
3636
bundler-cache: true
37-
- name: Setup Jekyll
38-
run: 'gem install bundler jekyll kramdown-parser-gfm webrick'
39-
- name: Setup assets
40-
run: 'cd docs/site/assets && npm ci && npm run build'
41-
- name: Build cldr.pages.dev
42-
run: 'cd docs/site && jekyll build'
37+
- name: Build Site
38+
run: 'sh tools/scripts/web/build-site.sh'
39+
- name: 'Remove wrangler.jsonc for now (this is the OLD pages build)'
40+
run: 'rm -f wrangler.jsonc'
4341
- name: Pre-install Wrangler
4442
if: (github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == 'unicode-org/cldr')
4543
run: npm i -g wrangler@3.x

tools/scripts/web/build-site.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
set -x
4+
5+
gem install bundler jekyll kramdown-parser-gfm webrick && \
6+
cd docs/site/assets && \
7+
npm ci && \
8+
npm run build && \
9+
cd .. && \
10+
jekyll build || exit 1
11+
12+
echo 'Output in ./_site'

wrangler.jsonc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "cldr-next",
3+
"$schema": "https://unpkg.com/wrangler/config-schema.json",
4+
"compatibility_date": "2026-01-20",
5+
"assets": {
6+
"directory": "./_site/",
7+
"not_found_handling": "404-page"
8+
},
9+
"preview_urls": true,
10+
"workers_dev": true
11+
}

0 commit comments

Comments
 (0)