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