Skip to content

Commit

Permalink
📝 (docs): add custom 404 page and update configuration for better use… (
Browse files Browse the repository at this point in the history
#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.
  • Loading branch information
MrHinsh authored Dec 4, 2024
2 parents 8f3d392 + 2705e77 commit 0e1dc05
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: 404 | Azure DevOps Migration Tools
layout: page
pageType: index
template: index-template.md
toc: false
pageStatus: published
discussionId:
---


The page you are looking for may have been moved or deleted! Try to find what you want in the left navigation.
2 changes: 1 addition & 1 deletion docs/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="d-flex w-100 justify-content-between">
<div class="d-flex">
<a class="navbar-brand" href="#">
<img src="/images/nkdagility-with-martin-hinshelwood-light.png" alt="Naked Agility Ltd" width="234" height="99">
<img src="/blob/images/nkdagility-with-martin-hinshelwood-light.png" alt="Naked Agility Ltd" width="234" height="99">
</a>
</div>
<div class="d-flex text-uppercase align-items-center">
Expand Down
7 changes: 7 additions & 0 deletions docs/staticwebapp.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"responseOverrides": {
"404": {
"rewrite": "/404"
}
}
}

0 comments on commit 0e1dc05

Please sign in to comment.