From fc1f4f5aaaf315a443b891ae4eb5885987daabca Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Mon, 19 Jul 2021 13:25:14 +0200 Subject: [PATCH] Refactoring docs workflow --- .github/workflows/ci.yml | 36 +++++++++++++++++++++++------------- src/configuration.rs | 2 +- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f00033..a7971f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,19 +93,19 @@ jobs: with: ruby-version: 2.7.x - - name: Setup Jekyll - working-directory: docs - run: | - gem update - gem update bundler - gem install jekyll bundler - bundler install + - uses: actions/cache@v2 + with: + path: docs/vendor/bundle + keys: ${{runner.os}}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- - uses: actions-rs/toolchain@v1 with: toolchain: stable target: thumbv7em-none-eabihf override: true + - name: Install Deadlinks uses: actions-rs/cargo@v1 with: @@ -126,14 +126,24 @@ jobs: # auto-generated code. args: --dir target/thumbv7em-none-eabihf/doc --ignore-fragments --check-http --check-intra-doc-links - - name: Move firmware documents - run: | - mkdir -p docs/_site/stabilizer + - uses: lemonarc/jekyll-action@1.0.0 + working-directory: docs - - name: Test User Manual + - name: Setup Site working-directory: docs run: | - rake build + mkdir _site/stabilizer + mv _site/* _site/stabilizer mv ../target/thumbv7em-none-eabihf/doc _site/stabilizer/firmware - rake test + - name: Test User Manual + uses: chabad360/htmlproofer@v1.1 + working-directory: docs + with: + directory: "./_site/stabilizer" + arguments: + --assume-extension + --file-ignore "/stabilizer\/firmware\/.*/" + --url-irgnore "/quartiq.de\/stabilizer/" + --allow-hash-href + --typhoeus_config '{"ssl_verify_peer": false}' diff --git a/src/configuration.rs b/src/configuration.rs index 01e410a..228f40e 100644 --- a/src/configuration.rs +++ b/src/configuration.rs @@ -3,7 +3,7 @@ /// MQTT broker IPv4 address /// /// In the default configuration, the IP address is defined as 10.34.16.10. -pub const MQTT_BROKER: [u8; 4] = [10, 34, 16, 10]; +pub const MQTT_BROKER: [u8; 4] = [10, 35, 16, 10]; /// Sampling Frequency ///