From b75ef60ac60db66b77c3f0d3b5ecdcb8aa6829d7 Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Mon, 3 Mar 2025 15:53:36 -0600 Subject: [PATCH 1/4] Add a custom not-found page --- 404.html | 268 +++++++++++++++++++++++++++++++++++++++++++++++++++++ nginx.conf | 6 +- 2 files changed, 273 insertions(+), 1 deletion(-) create mode 100644 404.html diff --git a/404.html b/404.html new file mode 100644 index 00000000..d38462ce --- /dev/null +++ b/404.html @@ -0,0 +1,268 @@ + + + + + + + + + + + + + + + + Page Not Found | Steeltoe + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+ + Steeltoe Documentation + + +
+
    +
  • + +
    + Overview + Microservices + Cloud + Web Applications + Event Driven +
    +
  • +
  • + +
    + Steeltoe + Initializr + Guides + Documentation + API Browser + Blog +
    +
  • +
  • + +
    + Steeltoe Application Configuration + Steeltoe Dynamic Logging + Steeltoe Management + Steeltoe Network File Sharing + Steeltoe Security + Steeltoe Service Connectors + Steeltoe Service Discovery +
    +
  • +
  • + Support +
  • +
  • + Community +
  • +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+

Page Not Found

+ +

We're sorry, but the page you're looking for cannot be found on the site.

+

+ Feel free to open an issue in the Steeltoe Documentation GitHub Repository + with the URL or content you expected to exist, and we'll be happy to look into it. +

+ +

+ Return to v4 documentation +

+
+
+
+
+
+
+
+
+
+
+ Copyright © 2005-2024 Broadcom. All Rights Reserved. The term + "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
+ • Privacy Policy + • Your California Privacy Rights + • Terms of Use + • Trademark Guidelines +
+
+
+
+
+
+ + + + + + + + + +
+
+ + + + + + + +
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + diff --git a/nginx.conf b/nginx.conf index 9f732303..f365be27 100644 --- a/nginx.conf +++ b/nginx.conf @@ -27,7 +27,11 @@ server { return 302 /api/v2/welcome; } - #error_page 404 /404.html; + error_page 404 403 /404.html; + location = /404.html { + root /usr/share/nginx/html; + internal; + } # redirect server error pages to the static page /50x.html # From 0ca10e9daae5423b2167b981991af90980340ab9 Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Mon, 3 Mar 2025 15:56:43 -0600 Subject: [PATCH 2/4] metadata-layer-changed should include 404.html --- .github/workflows/build-and-stage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-stage.yml b/.github/workflows/build-and-stage.yml index ba15502f..4cd13c33 100644 --- a/.github/workflows/build-and-stage.yml +++ b/.github/workflows/build-and-stage.yml @@ -50,6 +50,7 @@ jobs: - 'api/**' - 'articles/**' - 'guides/**' + - 404.html - build-metadata.sh - docfx.json - name: Declare image versions From 68b92a5e896c619c724d15121049c72e1516c1ca Mon Sep 17 00:00:00 2001 From: Tim Hess Date: Mon, 3 Mar 2025 16:16:55 -0600 Subject: [PATCH 3/4] root relative link for logo --- 404.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/404.html b/404.html index d38462ce..7e117cc4 100644 --- a/404.html +++ b/404.html @@ -22,7 +22,6 @@ Page Not Found | Steeltoe - @@ -38,19 +37,17 @@ - - +
- Steeltoe Documentation + Steeltoe Documentation
- Steeltoe - Initializr - Guides - Documentation - API Browser - Blog + Steeltoe Initializr + Guides + Documentation + API Browser + Blog