From fba60ef990adc1378497897c7ad1cb8fb51e3f1c Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Fri, 16 Jul 2021 14:12:08 +0200 Subject: [PATCH] Fixing CI --- .github/workflows/ci.yml | 7 +++++-- docs/Rakefile | 8 +++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e8275b..badc4c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,8 +129,11 @@ jobs: - name: Move firmware documents run: | mkdir -p docs/_site/stabilizer - mv target/thumbv7em-none-eabihf/doc docs/_site/stabilizer/firmware - name: Test User Manual working-directory: docs - run: rake test + run: | + rake build + mv target/thumbv7em-none-eabihf/doc docs/_site/stabilizer/firmware + rake test + diff --git a/docs/Rakefile b/docs/Rakefile index 25dcff6..57ecf11 100644 --- a/docs/Rakefile +++ b/docs/Rakefile @@ -9,6 +9,9 @@ def run_htmlproofer() options = { # Assumes html file extensions assume_extension: true, + + file_ignore: [ /stabilizer\/firmware\/.*/ ], + # The options for the curl library that's used. :typhoeus => { # This will stop you from getting errors when certs can't be parsed, which doesn't matter in this case. @@ -23,6 +26,9 @@ def run_htmlproofer() end task :test do - sh "bundle exec jekyll build -d _site/stabilizer" run_htmlproofer() end + +task :build do + sh "bundle exec jekyll build -d _site/stabilizer" +end