From 1a4e3516533bec1d1a03538b98934aed72a8d50d Mon Sep 17 00:00:00 2001
From: Jack Hickey <133868041+nginx-jack@users.noreply.github.com>
Date: Mon, 9 Jun 2025 14:37:48 +0100
Subject: [PATCH 01/37] Mainframe: Remove old css
---
layouts/_default/baseof.html | 161 ++++-------------------------------
layouts/partials/styles.html | 80 ++---------------
2 files changed, 26 insertions(+), 215 deletions(-)
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 54e5c04..e7022ea 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,185 +1,60 @@
-
-
-
-
-
-
-
-
-
-
+
{{ block "head" . }}
{{ partial "meta.html" . }}
-
+
{{ partial "favicon.html" . }}
-
+
{{ partial "styles.html" . }}
-
+
{{ if in .Params.doctypes "devportal" }}
{{ partial "devportal/style.html" . }}
{{ end }}
-
+
{{ if fileExists "/layouts/partials/head_custom.html" }}
{{ partial "head_custom.html" . }}
{{ end }}
-
+
{{ if or ( not hugo.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
-
+
{{ partial "trustarc.html" . }}
-
+
{{ partial "tealium-profile.html" . }}
-
+
{{ end }}
-
+
{{ end }}
-
+
-
+
-
+
{{ if or ( not hugo.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
{{ partial "universal-tag.html" . }}
{{ end }}
-
+
{{ block "header" . }}{{end}}
-
+
{{ if not .IsHome }}
{{ if not (in .Params.display_breadcrumb "false" ) }}
- {{ partial "breadcrumb" .}}
+ {{ partial "breadcrumb" .}}
{{ end }}
{{ end }}
-
+
{{ block "main" . }}{{ end }}
@@ -196,7 +71,7 @@
{{ partial "footer-v2.html" . }}
{{ end }}
- {{ partial "scripts.html" . }}
+ {{ partial "scripts.html" . }}
diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html
index 2c828d4..098d627 100644
--- a/layouts/partials/styles.html
+++ b/layouts/partials/styles.html
@@ -1,49 +1,14 @@
-{{ $css1 := resources.Get "css/docs-nginx-com/nginx-site-header.css" }}
-{{ $css2 := resources.Get "css/docs-nginx-com/style.css" }}
-{{ $css3 := resources.Get "css/bootstrap-docs.css" }}
-{{ $css4 := resources.Get "css/f5-hugo.css" }}
-{{ $css5 := resources.Get "css/highlight.css" }}
-{{ $css6 := resources.Get "css/coveo.css" }}
-{{ $css7 := resources.Get "css/v2/style.css" }}
-{{ $css8 := resources.Get "css/inline-overrides.css" }}
-{{ $css9 := resources.Get "css/v2/highlight.css" }}
+{{ $style := resources.Get "css/v2/style.css" | minify | fingerprint "sha512" }}
+
-
-
+{{ $cssInter := resources.Get "css/inter/inter.css" | minify | fingerprint "sha512" }}
+
-{{ $cssInter := resources.Get "css/inter/inter.css" | fingerprint "sha512" }}
-
+{{ $cssHighlight := resources.Get "css/v2/highlight.css" | minify | fingerprint "sha512"}}
+
-{{ $cssHighlight := $css9 | minify | fingerprint "sha512"}}
-
-
-
-
-
-{{ $cssFA1 := resources.Get "fontawesome/css/all.min.css" | fingerprint "sha512" }}
-
-
-{{ $cssFA2 := resources.Get "fontawesome/css/v4-font-face.min.css" | fingerprint "sha512" }}
-
-
-{{ $cssFA3 := resources.Get "fontawesome/css/v5-font-face.min.css" | fingerprint "sha512" }}
-
-
-
-{{ $cssBootstrap := resources.Get "css/bootstrap.min.css" | fingerprint "sha512" }}
-
-
-{{ if ( not ( in .Site.Params.buildtype "package" ) ) }}
-
- {{ end }}
+{{ $cssOverrides := resources.Get "css/inline-overrides.css" | minify | fingerprint "sha512"}}
+
-
-{{ $cssHeader := $css1 | minify | fingerprint "sha512"}}
-
-
-{{ $cssNginxStyles := $css2 | minify | fingerprint "sha512"}}
-
-
-{{ $bootstrapDocs := $css3 | minify | fingerprint "sha512"}}
-
-
-{{ if ( not ( in .Site.Params.buildtype "package" ) ) }}
-{{ $cssCoveo := $css6 | minify | fingerprint "sha512"}}
-
-{{ end }}
-
-{{ $cssF5Hugo := $css4 | minify | fingerprint "sha512"}}
-
-
-{{ $cssOverrides := $css8 | minify | fingerprint "sha512"}}
-
-
-{{ if fileExists "assets/css/custom.css" }}
-{{ $customCSS := resources.Get "css/custom.css" | minify | fingerprint "sha512" }}
-
-{{ end }}
-
-
-{{ $cssHighlight := $css5 | minify | fingerprint "sha512"}}
-
\ No newline at end of file
From 2a7f080bc97057f73faa7eb490b0472aa20f3a3c Mon Sep 17 00:00:00 2001
From: Jack Hickey <133868041+nginx-jack@users.noreply.github.com>
Date: Mon, 9 Jun 2025 14:41:10 +0100
Subject: [PATCH 02/37] Mainframe: Remove old js
---
layouts/partials/scripts.html | 27 +--------------------------
1 file changed, 1 insertion(+), 26 deletions(-)
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 5fdf31c..d9e7af8 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -1,18 +1,3 @@
-{{ $jquery := resources.Get "/js/jquery-3-6-4.min.js" }}
-
-
-{{ $kubejs := resources.Get "/js/kube.js" | minify | fingerprint "sha512" }}
-
-
-
-{{ $jsBootstrap := resources.Get "js/bootstrap.bundle.min.js" | fingerprint "sha512" }}
-
-
-
-{{ $codecopy := resources.Get "/js/code-copy.js" | fingerprint "sha512" }}
-
-
{{ $codecopyv2 := resources.Get "/js/code-copy-v2.js" | fingerprint "sha512" }}
@@ -64,20 +49,10 @@
{{ end }}
-
-
-
-{{ $jsSidebar := resources.Get "js/sidebar.js" | minify | fingerprint "sha512" }}
-
-
-
-{{ $jsSiteDropdown := resources.Get "js/site-dropdown.js" | minify | fingerprint "sha512" }}
-
-
{{ $jsProductSelector := resources.Get "js/product-selector.js" | minify | fingerprint "sha512" }}
{{ $jsSidebarV2 := resources.Get "js/sidebar-v2.js" | minify | fingerprint "sha512" }}
-
\ No newline at end of file
+
From 4be5ef680e916e71c7a80215a8b04364a0aa50e7 Mon Sep 17 00:00:00 2001
From: Lam Nguyen
Date: Mon, 9 Jun 2025 07:40:03 -0700
Subject: [PATCH 03/37] Mainframe: Removed css data-mf tags
---
exampleSite/content/test-product/_index.md | 1 -
.../_default/_markup/render-codeblock.html | 9 +-
layouts/_default/_markup/render-heading.html | 9 +-
layouts/_default/baseof.html | 16 +-
layouts/_default/docs.html | 10 +-
layouts/_default/list.html | 21 +-
layouts/partials/breadcrumb.html | 2 +-
layouts/partials/callout.html | 18 +-
layouts/partials/coveo-atomic-search.html | 5 +-
layouts/partials/custom-landing-page.html | 28 +--
layouts/partials/header.html | 3 +-
layouts/partials/list-main.html | 42 ----
layouts/partials/lucide.html | 2 +-
layouts/partials/sidebar.html | 207 ------------------
layouts/redoc/single.html | 12 +-
layouts/search/single.html | 11 +-
layouts/shortcodes/bootstrap-table.html | 2 +-
layouts/shortcodes/card-section.html | 8 +-
layouts/shortcodes/card.html | 17 +-
layouts/shortcodes/ghcode.html | 8 +-
20 files changed, 29 insertions(+), 402 deletions(-)
delete mode 100644 layouts/partials/list-main.html
delete mode 100644 layouts/partials/sidebar.html
diff --git a/exampleSite/content/test-product/_index.md b/exampleSite/content/test-product/_index.md
index 96b971a..c3f5d6e 100644
--- a/exampleSite/content/test-product/_index.md
+++ b/exampleSite/content/test-product/_index.md
@@ -17,7 +17,6 @@ hasCustomContent: true
Examples for codeblock shortcode
{{ card >}}
{{ card-section >}}
-
# Other Products on ExampleSite
{{< card-section title="NGINX" showAsCards="true" >}}
{{< card title="NGINX Plus" titleUrl="/nginx/" >}}
diff --git a/layouts/_default/_markup/render-codeblock.html b/layouts/_default/_markup/render-codeblock.html
index f108880..23ebd90 100644
--- a/layouts/_default/_markup/render-codeblock.html
+++ b/layouts/_default/_markup/render-codeblock.html
@@ -4,7 +4,7 @@
{{ $isSingleLine := eq (len $lines) 1 }}
{{- if $isSingleLine -}}
-
+
{{- else -}}
-
+
{{- if and (ne .Type "") (ne .Type "none") -}}
{{ .Type }}
{{- end -}}
@@ -24,7 +24,4 @@
-{{- end -}}
-
-{{ $result.Wrapped }}
-
\ No newline at end of file
+{{- end -}}
\ No newline at end of file
diff --git a/layouts/_default/_markup/render-heading.html b/layouts/_default/_markup/render-heading.html
index 4111b89..f1cf469 100644
--- a/layouts/_default/_markup/render-heading.html
+++ b/layouts/_default/_markup/render-heading.html
@@ -1,13 +1,6 @@
-
- {{ .Text | safeHTML }}
-
-
-
-
+
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index e7022ea..ba92f24 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -47,26 +47,12 @@
-
- {{ if not .IsHome }}
- {{ if not (in .Params.display_breadcrumb "false" ) }}
- {{ partial "breadcrumb" .}}
- {{ end }}
- {{ end }}
-
-
{{ block "main" . }}{{ end }}
-
-
-