diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index 87f2021f978..3f7946caf03 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -34,6 +34,8 @@ jobs: bundler-cache: true - name: Setup Jekyll run: 'gem install bundler jekyll kramdown-parser-gfm webrick' + - name: Setup assets + run: 'cd docs/site/assets && npm ci && npm run build' - name: Build cldr.pages.dev run: 'cd docs/site && jekyll build' - name: Pre-install Wrangler diff --git a/docs/site/.gitignore b/docs/site/.gitignore new file mode 100644 index 00000000000..f72d4052c50 --- /dev/null +++ b/docs/site/.gitignore @@ -0,0 +1,3 @@ +/node_modules +/assets/json +/assets/vendor diff --git a/docs/site/_config.yml b/docs/site/_config.yml index ab7eabda587..bc499f53c14 100644 --- a/docs/site/_config.yml +++ b/docs/site/_config.yml @@ -18,4 +18,3 @@ defaults: path: '' values: layout: page - diff --git a/docs/site/_headers b/docs/site/_headers new file mode 100644 index 00000000000..516ed2f1318 --- /dev/null +++ b/docs/site/_headers @@ -0,0 +1,2 @@ +/node_modules/*.js + content-type: application-javascript; charset=utf-8 diff --git a/docs/site/_layouts/page.html b/docs/site/_layouts/page.html index adff46349b0..5961ee550f1 100644 --- a/docs/site/_layouts/page.html +++ b/docs/site/_layouts/page.html @@ -14,23 +14,27 @@