diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index 728602e1..09cea5fb 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -30,10 +30,21 @@ jobs:
curl -sSL $url | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- - name: Deploy GitHub Pages
+ - name: Build Documentation
run: |
cd wiki
mdbook build
+
+ # mdBook rewrites .md links to .html without verifying the target exists, so a
+ # renamed or removed page builds cleanly and 404s in production. This also checks
+ # that the legacy wiki redirect map still resolves.
+ - name: Check Links
+ shell: pwsh
+ run: ./wiki/tools/Test-Links.ps1 -Book ./wiki/book -MapPath ./wiki/tools/wiki-redirect-map.tsv
+
+ - name: Deploy GitHub Pages
+ run: |
+ cd wiki
git worktree add gh-pages
git config user.name "GitHub Pages from CI"
git config user.email ""
diff --git a/README.md b/README.md
index 4c503c3f..2d11796c 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-[](https://dotnetfoundation.org/projects/project-detail/asp.net-api-versioning)
+[][dnf]
[](https://github.com/dotnet/aspnet-api-versioning/blob/main/LICENSE.txt)
[](https://dev.azure.com/aspnet-api-versioning/build/_build/latest?definitionId=1&branchName=main)
@@ -153,10 +153,12 @@ This project is licensed under the [MIT](LICENSE.TXT) license.
## .NET Foundation
-[](https://dotnetfoundation.org/projects/aspnet-api-versioning)
+[
][dnf]
This project is supported by the [.NET Foundation](https://dotnetfoundation.org).
----
> If you are an existing user, please makes sure you review the [release notes](../../releases) between all major and minor package releases.