-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use link-validator; configure JavaDoc
- Loading branch information
Showing
8 changed files
with
100 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Link Validator | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
schedule: | ||
- cron: '0 6 * * 1' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
validate-links: | ||
runs-on: ubuntu-22.04 | ||
if: github.repository == 'akka/akka-management' | ||
steps: | ||
- name: Checkout | ||
# https://github.com/actions/checkout/releases | ||
# v4.1.1 | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: | ||
# See https://github.com/actions/checkout/issues/299#issuecomment-677674415 | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 100 | ||
|
||
- name: Fetch tags | ||
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/* | ||
|
||
- name: Cache Coursier cache | ||
# https://github.com/coursier/cache-action/releases | ||
# v6.4.5 | ||
uses: coursier/cache-action@1ff273bff02a8787bc9f1877d347948af647956d | ||
|
||
- name: Set up JDK 11 | ||
# https://github.com/coursier/setup-action/releases | ||
# v1.3.5 | ||
uses: coursier/setup-action@7bde40eee928896f074dbb76d22dd772eed5c65f | ||
with: | ||
jvm: temurin:1.11.0 | ||
apps: cs | ||
|
||
- name: sbt site | ||
run: sbt docs/makeSite | ||
|
||
- name: Run Link Validator | ||
run: cs launch net.runne::site-link-validator:0.2.5 -- scripts/link-validator.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// config for https://github.com/ennru/site-link-validator/ | ||
site-link-validator { | ||
root-dir = "./docs/target/site/" | ||
# relative to `root-dir` | ||
start-file = "libraries/akka-management/snapshot/index.html" | ||
|
||
# Resolves URLs with the given prefix as local files instead | ||
link-mappings = [ | ||
{ | ||
prefix = "https://doc.akka.io/libraries/akka-management/snapshot/" | ||
replace = "/libraries/akka-management/snapshot/" | ||
} | ||
{ | ||
prefix = "https://doc.akka.io/api/akka-management/snapshot/" | ||
replace = "/api/akka-management/snapshot/" | ||
} | ||
] | ||
|
||
ignore-missing-local-files-regex = "" | ||
|
||
ignore-files = [] | ||
|
||
ignore-prefixes = [ | ||
# GitHub will block with "429 Too Many Requests" | ||
"https://github.com/akka/akka-management/" | ||
# MVN repository forbids access after a few requests | ||
"https://mvnrepository.com/artifact/", | ||
"https://repo.akka.io/", | ||
"http://127.0.0.1:8080" | ||
] | ||
|
||
non-https-whitelist = [ | ||
"http://logback.qos.ch/" | ||
] | ||
} |