-
Notifications
You must be signed in to change notification settings - Fork 2
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) (#85)
* docs: revise URL structure (libraries) * scalafmtSbt * Cross link to Java 17 APIs * JPMS links
- Loading branch information
Showing
11 changed files
with
130 additions
and
32 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.event.repository.fork == false | ||
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 17 | ||
# https://github.com/coursier/setup-action/releases | ||
# v1.3.5 | ||
uses: coursier/setup-action@7bde40eee928896f074dbb76d22dd772eed5c65f | ||
with: | ||
jvm: temurin:1.17.0.5 | ||
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
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,33 @@ | ||
// 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-persistence-dynamodb/snapshot/index.html" | ||
|
||
# Resolves URLs with the given prefix as local files instead | ||
link-mappings = [ | ||
{ | ||
prefix = "https://doc.akka.io/libraries/akka-persistence-dynamodb/snapshot/" | ||
replace = "/libraries/akka-persistence-dynamodb/snapshot/" | ||
} | ||
{ | ||
prefix = "https://doc.akka.io/api/akka-persistence-dynamodb/snapshot/" | ||
replace = "/api/akka-persistence-dynamodb/snapshot/" | ||
} | ||
] | ||
|
||
ignore-missing-local-files-regex = "" | ||
|
||
ignore-files = [] | ||
|
||
ignore-prefixes = [ | ||
# GitHub will block with "429 Too Many Requests" | ||
"https://github.com/akka/akka-persistence-dynamodb/" | ||
# MVN repository forbids access after a few requests | ||
"https://mvnrepository.com/artifact/", | ||
"https://repo.akka.io/", | ||
] | ||
|
||
non-https-whitelist = [ | ||
] | ||
} |