From a80d200c4a801592771f1870b0a8e064c8b8dd7d Mon Sep 17 00:00:00 2001 From: Nathan Melehan Date: Tue, 14 Apr 2026 04:14:40 +0000 Subject: [PATCH 1/3] Duplicate sitemap for staging, testing, and prod build actions Will be used for upcoming domain change project --- .github/workflows/build-production-site.yaml | 7 +++++++ .github/workflows/build-staging-site.yaml | 7 +++++++ .github/workflows/build-testing-site.yaml | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/.github/workflows/build-production-site.yaml b/.github/workflows/build-production-site.yaml index 1dc4defb6ea..ad10f589691 100644 --- a/.github/workflows/build-production-site.yaml +++ b/.github/workflows/build-production-site.yaml @@ -211,6 +211,13 @@ jobs: run: | echo $GITHUB_SHA > public/gitcommithash.txt + # Temporarily need this for akamai.com/cloud renaming + - name: 14. Make duplicate sitemap file under different name + working-directory: ./docs-repo + run: | + cd public + cp sitemap.xml ${{ vars.DUPE_SITEMAP_NAME }} + # Make a tarball of the site, because it will upload much, much quicker # than the uncompressed rendered site. The commit for this workflow run # is encoded in the name of the tarball. diff --git a/.github/workflows/build-staging-site.yaml b/.github/workflows/build-staging-site.yaml index 976b1f9ddef..bcc6dccc2d8 100644 --- a/.github/workflows/build-staging-site.yaml +++ b/.github/workflows/build-staging-site.yaml @@ -218,6 +218,13 @@ jobs: run: | echo $GITHUB_SHA > public/gitcommithash.txt + # Temporarily need this for akamai.com/cloud renaming + - name: 14. Make duplicate sitemap file under different name + working-directory: ./docs-repo + run: | + cd public + cp sitemap.xml ${{ vars.DUPE_SITEMAP_NAME }} + # Make a tarball of the site, because it will upload much, much quicker # than the uncompressed rendered site. The commit for this workflow run # is encoded in the name of the tarball. diff --git a/.github/workflows/build-testing-site.yaml b/.github/workflows/build-testing-site.yaml index 999265ea644..10928e871d2 100644 --- a/.github/workflows/build-testing-site.yaml +++ b/.github/workflows/build-testing-site.yaml @@ -219,6 +219,13 @@ jobs: run: | echo $GITHUB_SHA > public/gitcommithash.txt + # Temporarily need this for akamai.com/cloud renaming + - name: 14. Make duplicate sitemap file under different name + working-directory: ./docs-repo + run: | + cd public + cp sitemap.xml ${{ vars.DUPE_SITEMAP_NAME }} + # Make a tarball of the site, because it will upload much, much quicker # than the uncompressed rendered site. The commit for this workflow run # is encoded in the name of the tarball. From c24fdd6f3dd6743f65c465b2445e4229b8ba713b Mon Sep 17 00:00:00 2001 From: Nathan Melehan Date: Tue, 14 Apr 2026 18:09:02 +0000 Subject: [PATCH 2/3] Test page for cloud-prefixed links --- .../awk/test-cloud-relative-links/index.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 docs/guides/development/awk/test-cloud-relative-links/index.md diff --git a/docs/guides/development/awk/test-cloud-relative-links/index.md b/docs/guides/development/awk/test-cloud-relative-links/index.md new file mode 100644 index 00000000000..de9d067908b --- /dev/null +++ b/docs/guides/development/awk/test-cloud-relative-links/index.md @@ -0,0 +1,24 @@ +--- +slug: test-cloud-relative-links +title: "Test Cloud Relative Links" +description: "Two to three sentences describing your guide." +og_description: "Optional two to three sentences describing your guide when shared on social media. If omitted, the `description` parameter is used within social links." +authors: ["Akamai"] +contributors: ["Akamai"] +published: 2026-04-14 +keywords: ['list','of','keywords','and key phrases'] +license: '[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0)' +external_resources: +- '[Link Title 1](http://www.example.com)' +- '[Link Title 2](http://www.example.net)' +noindex: true +build: + list: false +--- + +Test for relative link with `cloud` prefix: + +- [Deploy a RAG-Powered Chatbot with LangChain on LKE](/cloud/guides/deploy-rag-powered-chatbot-langchain-lke/) +- [Awk section](/cloud/guides/development/awk/) +- [Cloud Guides & Tutorials](/cloud/guides/) + From 4c1386a237cb609a24149ead46eb87749f6b25eb Mon Sep 17 00:00:00 2001 From: Nathan Melehan Date: Tue, 14 Apr 2026 19:38:52 +0000 Subject: [PATCH 3/3] Theme updates - Refactor header/footer code - Fix rendering issue for section pages --- .../common-partials}/dist/css/footer.css | 0 .../common-partials}/dist/css/header.css | 0 .../dist/js/attribution-inline.js | 0 .../common-partials}/dist/js/footer-inline.js | 0 .../common-partials}/dist/js/header.js | 0 .../dist/wordpress/footer.html | 0 .../dist/wordpress/header.html | 0 .../linode/linode-docs-theme/config.toml | 45 +++++----- .../layouts/_default/list.html | 84 ------------------- .../linode/linode-docs-theme/package.json | 41 --------- .../linode-website-partials/package.json | 14 ---- _vendor/modules.txt | 3 +- go.mod | 3 +- go.sum | 3 + 14 files changed, 27 insertions(+), 166 deletions(-) rename _vendor/github.com/linode/{linode-website-partials => linode-docs-theme/common-partials}/dist/css/footer.css (100%) rename _vendor/github.com/linode/{linode-website-partials => linode-docs-theme/common-partials}/dist/css/header.css (100%) rename _vendor/github.com/linode/{linode-website-partials => linode-docs-theme/common-partials}/dist/js/attribution-inline.js (100%) rename _vendor/github.com/linode/{linode-website-partials => linode-docs-theme/common-partials}/dist/js/footer-inline.js (100%) rename _vendor/github.com/linode/{linode-website-partials => linode-docs-theme/common-partials}/dist/js/header.js (100%) rename _vendor/github.com/linode/{linode-website-partials => linode-docs-theme/common-partials}/dist/wordpress/footer.html (100%) rename _vendor/github.com/linode/{linode-website-partials => linode-docs-theme/common-partials}/dist/wordpress/header.html (100%) delete mode 100644 _vendor/github.com/linode/linode-docs-theme/package.json delete mode 100644 _vendor/github.com/linode/linode-website-partials/package.json diff --git a/_vendor/github.com/linode/linode-website-partials/dist/css/footer.css b/_vendor/github.com/linode/linode-docs-theme/common-partials/dist/css/footer.css similarity index 100% rename from _vendor/github.com/linode/linode-website-partials/dist/css/footer.css rename to _vendor/github.com/linode/linode-docs-theme/common-partials/dist/css/footer.css diff --git a/_vendor/github.com/linode/linode-website-partials/dist/css/header.css b/_vendor/github.com/linode/linode-docs-theme/common-partials/dist/css/header.css similarity index 100% rename from _vendor/github.com/linode/linode-website-partials/dist/css/header.css rename to _vendor/github.com/linode/linode-docs-theme/common-partials/dist/css/header.css diff --git a/_vendor/github.com/linode/linode-website-partials/dist/js/attribution-inline.js b/_vendor/github.com/linode/linode-docs-theme/common-partials/dist/js/attribution-inline.js similarity index 100% rename from _vendor/github.com/linode/linode-website-partials/dist/js/attribution-inline.js rename to _vendor/github.com/linode/linode-docs-theme/common-partials/dist/js/attribution-inline.js diff --git a/_vendor/github.com/linode/linode-website-partials/dist/js/footer-inline.js b/_vendor/github.com/linode/linode-docs-theme/common-partials/dist/js/footer-inline.js similarity index 100% rename from _vendor/github.com/linode/linode-website-partials/dist/js/footer-inline.js rename to _vendor/github.com/linode/linode-docs-theme/common-partials/dist/js/footer-inline.js diff --git a/_vendor/github.com/linode/linode-website-partials/dist/js/header.js b/_vendor/github.com/linode/linode-docs-theme/common-partials/dist/js/header.js similarity index 100% rename from _vendor/github.com/linode/linode-website-partials/dist/js/header.js rename to _vendor/github.com/linode/linode-docs-theme/common-partials/dist/js/header.js diff --git a/_vendor/github.com/linode/linode-website-partials/dist/wordpress/footer.html b/_vendor/github.com/linode/linode-docs-theme/common-partials/dist/wordpress/footer.html similarity index 100% rename from _vendor/github.com/linode/linode-website-partials/dist/wordpress/footer.html rename to _vendor/github.com/linode/linode-docs-theme/common-partials/dist/wordpress/footer.html diff --git a/_vendor/github.com/linode/linode-website-partials/dist/wordpress/header.html b/_vendor/github.com/linode/linode-docs-theme/common-partials/dist/wordpress/header.html similarity index 100% rename from _vendor/github.com/linode/linode-website-partials/dist/wordpress/header.html rename to _vendor/github.com/linode/linode-docs-theme/common-partials/dist/wordpress/header.html diff --git a/_vendor/github.com/linode/linode-docs-theme/config.toml b/_vendor/github.com/linode/linode-docs-theme/config.toml index b65089d7452..b60f3ddca92 100644 --- a/_vendor/github.com/linode/linode-docs-theme/config.toml +++ b/_vendor/github.com/linode/linode-docs-theme/config.toml @@ -170,36 +170,33 @@ target = "static" # The common static footer and header. - [[module.imports]] - path = "github.com/linode/linode-website-partials" - - [[module.imports.mounts]] - source = "dist/wordpress/header.html" - target = "layouts/partials/linode-header.html" + [[module.mounts]] + source = "common-partials/dist/wordpress/header.html" + target = "layouts/partials/linode-header.html" - [[module.imports.mounts]] - source = "dist/wordpress/footer.html" - target = "layouts/partials/linode-footer.html" + [[module.mounts]] + source = "common-partials/dist/wordpress/footer.html" + target = "layouts/partials/linode-footer.html" - [[module.imports.mounts]] - source = "dist/css/header.css" - target = "assets/linode/header.css" + [[module.mounts]] + source = "common-partials/dist/css/header.css" + target = "assets/linode/header.css" - [[module.imports.mounts]] - source = "dist/css/footer.css" - target = "assets/linode/footer.css" + [[module.mounts]] + source = "common-partials/dist/css/footer.css" + target = "assets/linode/footer.css" - [[module.imports.mounts]] - source = "dist/js/header.js" - target = "assets/linode/header.js" + [[module.mounts]] + source = "common-partials/dist/js/header.js" + target = "assets/linode/header.js" - [[module.imports.mounts]] - source = "dist/js/footer-inline.js" - target = "assets/linode/footer-inline.js" + [[module.mounts]] + source = "common-partials/dist/js/footer-inline.js" + target = "assets/linode/footer-inline.js" - [[module.imports.mounts]] - source = "dist/js/attribution-inline.js" - target = "assets/linode/attribution-inline.js" + [[module.mounts]] + source = "common-partials/dist/js/attribution-inline.js" + target = "assets/linode/attribution-inline.js" # JS components packaged as Hugo Modules. [[module.imports]] diff --git a/_vendor/github.com/linode/linode-docs-theme/layouts/_default/list.html b/_vendor/github.com/linode/linode-docs-theme/layouts/_default/list.html index 744e44627ef..8bd2b816e9f 100644 --- a/_vendor/github.com/linode/linode-docs-theme/layouts/_default/list.html +++ b/_vendor/github.com/linode/linode-docs-theme/layouts/_default/list.html @@ -4,9 +4,6 @@ {{ end }} {{ define "main" }} - {{ template "list-js" . }} {{ end }} @@ -240,87 +237,6 @@

{{ end }} -{{ define "list-nojs" }} -
-
-
-

- {{ .Title }} - {{ if .Sections }} - Categories - {{ end }} -

-
- - {{ T (printf "%s-count-available" .Section ) (len .RegularPagesRecursive) }} - -
-
-
- {{ .Summary }} -
-
-
- - -
- {{ range $i, $ := .RegularPages }} -
-
-
- {{ partial "helpers/bundle-image.html" (dict "page" . "class" "absolute top-0 h-full w-full object-cover" "command" "Resize" "options" "640x jpg") }} -
-
-
- -

- {{ .LinkTitle }} -

-
-
- {{ .Summary }} -
-
-
- {{ end }} -
-
-{{ end }} - {{ define "section-list-tiles-static" }}

{{ .page.Title }} Categories

diff --git a/_vendor/github.com/linode/linode-docs-theme/package.json b/_vendor/github.com/linode/linode-docs-theme/package.json deleted file mode 100644 index abf08cef35b..00000000000 --- a/_vendor/github.com/linode/linode-docs-theme/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "comments": { - "dependencies": {}, - "devDependencies": { - "@babel/cli": "project", - "@babel/core": "project", - "@babel/preset-env": "project", - "@tailwindcss/forms": "project", - "@tailwindcss/typography": "project", - "autoprefixer": "project", - "cypress": "project", - "cypress-axe": "project", - "cypress-html-validate": "project", - "html-validate": "project", - "postcss": "project", - "postcss-cli": "project", - "prettier": "project", - "prettier-plugin-go-template": "project", - "tailwindcss": "project" - } - }, - "dependencies": {}, - "devDependencies": { - "@babel/cli": "^7.24.7", - "@babel/core": "^7.24.7", - "@babel/preset-env": "^7.24.7", - "@tailwindcss/forms": "^0.5.7", - "@tailwindcss/typography": "^0.5.13", - "autoprefixer": "^10.4.19", - "cypress": "^13.11.0", - "cypress-axe": "^1.5.0", - "cypress-html-validate": "^6.1.0", - "html-validate": "^8.20.1", - "postcss": "^8.4.38", - "postcss-cli": "^11.0.0", - "prettier": "^3.3.2", - "prettier-plugin-go-template": "^0.0.15", - "tailwindcss": "^3.4.4" - }, - "scripts": {} -} diff --git a/_vendor/github.com/linode/linode-website-partials/package.json b/_vendor/github.com/linode/linode-website-partials/package.json deleted file mode 100644 index 27f6a868593..00000000000 --- a/_vendor/github.com/linode/linode-website-partials/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "scripts": { - "build:eleventy": "npx eleventy", - "postbuild:assets": "node scripts/assets.js", - "postbuild:finalize": "node scripts/finalize.js", - "build": "npm run build:eleventy && npm run postbuild:finalize && npm run postbuild:assets" - }, - "devDependencies": { - "@11ty/eleventy": "^3.1.0", - "esbuild": "^0.25.5", - "fast-glob": "^3.3.3", - "globby": "^14.1.0" - } -} diff --git a/_vendor/modules.txt b/_vendor/modules.txt index c6638075e28..ccef7d06eef 100644 --- a/_vendor/modules.txt +++ b/_vendor/modules.txt @@ -1,5 +1,4 @@ -# github.com/linode/linode-docs-theme v0.0.0-20260326194040-ea984c4c8cb6 -# github.com/linode/linode-website-partials v0.0.0-20250814204525-0d7fe4159951 +# github.com/linode/linode-docs-theme v0.0.0-20260409012914-41c7441e26c5 # github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21300.20800 # github.com/gohugoio/hugo-mod-jslibs/turbo/v8 v8.20000.20400 # github.com/hotwired/turbo v8.0.4+incompatible diff --git a/go.mod b/go.mod index b6d726f1903..edf9ab5c2b4 100644 --- a/go.mod +++ b/go.mod @@ -7,5 +7,6 @@ require ( github.com/gohugoio/hugo-mod-jslibs/turbo/v7 v7.20300.20000 // indirect github.com/instantpage/instant.page v5.1.1+incompatible // indirect github.com/linode/linode-api-docs/v4 v4.176.0 // indirect - github.com/linode/linode-docs-theme v0.0.0-20260326194040-ea984c4c8cb6 // indirect + github.com/linode/linode-docs-theme v0.0.0-20260409012914-41c7441e26c5 // indirect + github.com/linode/linode-website-partials v0.0.0-20250814204525-0d7fe4159951 // indirect ) diff --git a/go.sum b/go.sum index a975322951c..57e9561d53c 100644 --- a/go.sum +++ b/go.sum @@ -344,6 +344,8 @@ github.com/linode/linode-docs-theme v0.0.0-20260320161745-9da7143e9baf h1:mzp++8 github.com/linode/linode-docs-theme v0.0.0-20260320161745-9da7143e9baf/go.mod h1:sMRfMYZ0n0E2/EJTPRPwbkXX/RKLhDma1cs4FyszErE= github.com/linode/linode-docs-theme v0.0.0-20260326194040-ea984c4c8cb6 h1:uGswrBxR6m8zoHIijFUjF801VDoTlqO5d8hmtYxJl4w= github.com/linode/linode-docs-theme v0.0.0-20260326194040-ea984c4c8cb6/go.mod h1:sMRfMYZ0n0E2/EJTPRPwbkXX/RKLhDma1cs4FyszErE= +github.com/linode/linode-docs-theme v0.0.0-20260409012914-41c7441e26c5 h1:CNScAHU8YKTZ4k3tbPYrdHxS1g1CPjkJExP20v1vfPc= +github.com/linode/linode-docs-theme v0.0.0-20260409012914-41c7441e26c5/go.mod h1:+c1nDe/v3R4DH8WCf4SwzCdjG629tRasJwLNADWM7MA= github.com/linode/linode-website-partials v0.0.0-20221205205120-b6ea1aaa59fb/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao= github.com/linode/linode-website-partials v0.0.0-20221222200538-99862e429110/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao= github.com/linode/linode-website-partials v0.0.0-20230201145731-a8703d0a954a/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao= @@ -377,4 +379,5 @@ github.com/linode/linode-website-partials v0.0.0-20250409155719-a69a3433df0c/go. github.com/linode/linode-website-partials v0.0.0-20250613135058-1f0f32424646/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao= github.com/linode/linode-website-partials v0.0.0-20250714201257-b4c2d5e13c4b/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao= github.com/linode/linode-website-partials v0.0.0-20250808160825-b7007b72ffe9/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao= +github.com/linode/linode-website-partials v0.0.0-20250814204525-0d7fe4159951 h1:udzvdSBV6leO5EdCEHrfUbzjDOR4aGABPWUnKiGE2jk= github.com/linode/linode-website-partials v0.0.0-20250814204525-0d7fe4159951/go.mod h1:K1Em3lwb16JiCwNVftAFwWGhyB9Zkl/nXhxjBBUC1Ao=