diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index b787c6d9..3bc3c7a6 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -25,6 +25,11 @@ jobs: bundler-cache: true cache-version: 2 + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Build & Validate run: rake validate diff --git a/Dockerfile b/Dockerfile index f0176c9d..b759d68f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,8 @@ RUN git config --global --add safe.directory /usr/src/docs && git config --globa RUN gem install 'bundler:~>1' rake +RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs + COPY . ./ RUN rake dependencies diff --git a/Rakefile b/Rakefile index a0626950..51a5e95f 100644 --- a/Rakefile +++ b/Rakefile @@ -17,6 +17,8 @@ task :dependencies do sh('bundle install --path gems') end + sh('npm install') + # Fix pathutil on Ruby 3; works around https://github.com/envygeeks/pathutil/pull/5 # as suggested by https://stackoverflow.com/a/73909894/67873 pathutil_path = `bundle exec gem which pathutil`.strip() @@ -24,10 +26,6 @@ task :dependencies do File.write(pathutil_path, content) end -task :spelling_dependencies do - sh('npm install') -end - file '_sass/brand/.git' do sh('git submodule update --init') end @@ -42,8 +40,6 @@ task :build => [:dependencies, :submodules] do sh('bundle exec jekyll build --config _config.yml') end -task :build_spellings => [:build, :spelling_dependencies] - task :validate_kit_versions do data = YAML.load_file('_data/kit_versions.yml') data.each do |entry| @@ -161,7 +157,7 @@ task :validate_sidebar_tree => [:build] do puts "Sidebar links validated successfully" end -task :validate_spellings => [:build_spellings] do +task :validate_spellings => [:build] do sh('npm run spell-check') end diff --git a/_includes/head.html b/_includes/head.html index 3e66f9c8..da93f3ca 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -7,6 +7,7 @@ + {% if page.extra_css %} diff --git a/_includes/script.html b/_includes/script.html index 31e54719..7a0356d6 100644 --- a/_includes/script.html +++ b/_includes/script.html @@ -14,3 +14,5 @@ + + diff --git a/_layouts/page.html b/_layouts/page.html index affb1f85..a2517351 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -3,18 +3,21 @@ ---