Skip to content

Commit 0e1dc05

Browse files
authored
📝 (docs): add custom 404 page and update configuration for better use… (#2553)
…r experience Introduce a custom 404 page to guide users when they encounter a missing page. This change enhances user experience by providing helpful navigation instructions instead of a generic error message. Additionally, a new configuration file is added to ensure the custom 404 page is served correctly, improving the overall usability of the documentation site.
2 parents 8f3d392 + 2705e77 commit 0e1dc05

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

docs/404.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: 404 | Azure DevOps Migration Tools
3+
layout: page
4+
pageType: index
5+
template: index-template.md
6+
toc: false
7+
pageStatus: published
8+
discussionId:
9+
---
10+
11+
12+
The page you are looking for may have been moved or deleted! Try to find what you want in the left navigation.

docs/_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<div class="d-flex w-100 justify-content-between">
3232
<div class="d-flex">
3333
<a class="navbar-brand" href="#">
34-
<img src="/images/nkdagility-with-martin-hinshelwood-light.png" alt="Naked Agility Ltd" width="234" height="99">
34+
<img src="/blob/images/nkdagility-with-martin-hinshelwood-light.png" alt="Naked Agility Ltd" width="234" height="99">
3535
</a>
3636
</div>
3737
<div class="d-flex text-uppercase align-items-center">

docs/staticwebapp.config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"responseOverrides": {
3+
"404": {
4+
"rewrite": "/404"
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)