Skip to content

Commit

Permalink
Create linkcheck.yml (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Jun 18, 2024
1 parent 542e18b commit cf93bd6
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# .github/workflows/run-htmltest.yml
# (c) 2021 Robb Romans
#
# Run htmltest link checker on generated HTML output in dist/
# https://github.com/wjdp/htmltest
#
name: run-htmltest-external
concurrency:
group: pullrequest-untrusted-htmltest-${{ github.event.number }}
cancel-in-progress: true
on: pull_request
jobs:
htmltest:
runs-on: ubuntu-large
container:
image: ghcr.io/cirruslabs/flutter:latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Setup Flutter
run: flutter pub get

- name: Generate docs
run: dart doc

- name: Test HTML
# https://github.com/wjdp/htmltest-action/
# Don't fail the build on broken links
continue-on-error: false
uses: wjdp/htmltest-action@master
with:
config: .htmltest.yml
- name: Archive htmltest results
uses: actions/upload-artifact@v3
# Note: Set ACTIONS_RUNTIME_TOKEN env variable to test with nektos/act
with:
name: htmltest-report
path: tmp/.htmltest/htmltest.log
retention-days: 7 # Default is 90 days
14 changes: 14 additions & 0 deletions .htmltest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
DirectoryPath: "doc/api"
EnforceHTTPS: true
IgnoreEmptyHref: true
IgnoreInternalEmptyHash: true
IgnoreDirectoryMissingTrailingSlash: false
IgnoreURLs:
- "app.viam.com"
- "fonts.gstatic.com"
IgnoreDirs:
- "lib"
CacheExpires: "6h"
# IgnoreDirs: - if we need to ever ignore files
CheckInternal: false
CheckDoctype: false
2 changes: 1 addition & 1 deletion lib/src/gen/app/v1/robot.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ class Orientation_EulerAngles extends $pb.GeneratedMessage {
void clearYaw() => clearField(3);
}

/// See here for a thorough explanation: https://en.wikipedia.org/wiki/Axis%E2%80%93angle_representation
/// See here for a thorough explanation: https://en.wikipedia.org/wiki/Axis-angle_representation
/// Basic explanation: Imagine a 3d cartesian grid centered at 0,0,0, and a sphere of radius 1 centered at
/// that same point. An orientation can be expressed by first specifying an axis, i.e. a line from the origin
/// to a point on that sphere, represented by (rx, ry, rz), and a rotation around that axis, theta.
Expand Down

0 comments on commit cf93bd6

Please sign in to comment.