Skip to content

Commit cf93bd6

Browse files
authored
Create linkcheck.yml (#234)
1 parent 542e18b commit cf93bd6

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

.github/workflows/linkcheck.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# .github/workflows/run-htmltest.yml
2+
# (c) 2021 Robb Romans
3+
#
4+
# Run htmltest link checker on generated HTML output in dist/
5+
# https://github.com/wjdp/htmltest
6+
#
7+
name: run-htmltest-external
8+
concurrency:
9+
group: pullrequest-untrusted-htmltest-${{ github.event.number }}
10+
cancel-in-progress: true
11+
on: pull_request
12+
jobs:
13+
htmltest:
14+
runs-on: ubuntu-large
15+
container:
16+
image: ghcr.io/cirruslabs/flutter:latest
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Flutter
22+
run: flutter pub get
23+
24+
- name: Generate docs
25+
run: dart doc
26+
27+
- name: Test HTML
28+
# https://github.com/wjdp/htmltest-action/
29+
# Don't fail the build on broken links
30+
continue-on-error: false
31+
uses: wjdp/htmltest-action@master
32+
with:
33+
config: .htmltest.yml
34+
- name: Archive htmltest results
35+
uses: actions/upload-artifact@v3
36+
# Note: Set ACTIONS_RUNTIME_TOKEN env variable to test with nektos/act
37+
with:
38+
name: htmltest-report
39+
path: tmp/.htmltest/htmltest.log
40+
retention-days: 7 # Default is 90 days

.htmltest.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
DirectoryPath: "doc/api"
2+
EnforceHTTPS: true
3+
IgnoreEmptyHref: true
4+
IgnoreInternalEmptyHash: true
5+
IgnoreDirectoryMissingTrailingSlash: false
6+
IgnoreURLs:
7+
- "app.viam.com"
8+
- "fonts.gstatic.com"
9+
IgnoreDirs:
10+
- "lib"
11+
CacheExpires: "6h"
12+
# IgnoreDirs: - if we need to ever ignore files
13+
CheckInternal: false
14+
CheckDoctype: false

lib/src/gen/app/v1/robot.pb.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1993,7 +1993,7 @@ class Orientation_EulerAngles extends $pb.GeneratedMessage {
19931993
void clearYaw() => clearField(3);
19941994
}
19951995

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

0 commit comments

Comments
 (0)