-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: revise URL structure (libraries) part 2 (#4432)
- Loading branch information
Showing
6 changed files
with
86 additions
and
7 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,42 @@ | ||
name: Link Validator | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 6 * * 1' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
validate-links: | ||
runs-on: ubuntu-22.04 | ||
if: github.event.repository.fork == false | ||
steps: | ||
- name: Checkout | ||
# https://github.com/actions/checkout/releases | ||
# v4.1.1 | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
with: # https://github.com/olafurpg/setup-scala#faster-checkout-of-big-repos | ||
fetch-depth: 100 | ||
fetch-tags: true | ||
|
||
- 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 | ||
apps: cs | ||
|
||
- name: sbt site | ||
run: sbt docs/paradox | ||
|
||
- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// config for https://github.com/ennru/site-link-validator/ | ||
site-link-validator { | ||
root-dir = "docs/target/paradox/site/main/" | ||
# relative to `root-dir` | ||
start-file = "index.html" | ||
|
||
# Resolves URLs with the given prefix as local files instead | ||
link-mappings = [ | ||
{ | ||
prefix = "https://doc.akka.io/libraries/akka-http/snapshot/" | ||
replace = "/" | ||
} | ||
{ | ||
prefix = "https://doc.akka.io/api/akka-http/snapshot/" | ||
replace = "/api/akka-http/snapshot/" | ||
} | ||
] | ||
|
||
ignore-missing-local-files-regex = "" | ||
|
||
ignore-prefixes = [ | ||
"https://repo.akka.io/maven" | ||
"https://repo.akka.io/snapshots" | ||
# GitHub will block with "429 Too Many Requests" | ||
"https://github.com/" | ||
# MVN repository forbids access after a few requests | ||
"https://mvnrepository.com/artifact/" | ||
"http://localhost:" | ||
"http://example.com" | ||
] | ||
|
||
ignore-files = [] | ||
|
||
non-https-whitelist = [ | ||
"http://restclient.net/" | ||
] | ||
} |