diff --git a/_vendor/github.com/linode/linode-docs-theme/config.toml b/_vendor/github.com/linode/linode-docs-theme/config.toml index 80ff9943716..5922bb62765 100644 --- a/_vendor/github.com/linode/linode-docs-theme/config.toml +++ b/_vendor/github.com/linode/linode-docs-theme/config.toml @@ -1,195 +1,211 @@ [params] -time_format_iso8601 = "2006-01-02T15:04:05-07:00" - -weglot_api_key = "wg_3b3ef29c81aa81292c64d1368ee318969" - - -# # Adobe Analytics script used in production. -# For development/staging, see the config dir. -adobe_launch_script = "https://assets.adobedtm.com/fcfd3580c848/f9e7661907ee/launch-2fb69de42220.min.js" - -# OneTrust Domain used in production. -onetrust_script_src = "https://www.linode.com/ns/ot/202410.1.0/prod/scripttemplates/otSDKStub.js" -onetrust_domain_script = "01922358-0e47-73fa-9452-fa124177d6d6" - -# Configuration for the contextual menu over content items that -# allows the user to send specific feedback/issue about the content -# to GitHub. -# We currently pass attribute 'context' and 'file' prefilled from the front-end. -[params.file_issue_button] -enable = true -repo_url = "https://github.com/bep/githubissuestest" -[[params.file_issue_button.issue_templates]] -# The id maps to a GitHub issue template in the repository. -id = "issue-template-1.yml" -# The title is what gets shown in the contextual menu. -title = "Report a problem" -[[params.file_issue_button.issue_templates]] -id = "issue-template-2.yml" -title = "Report something else" - -[params.search_config2] - -app_id = "KGUN8FAIPF" -api_key = "d364d8e601808b96178d0776ed43b2c9" -meta_index = "linode-documentation-sections" -index_prefix = "" -click_analytics = true - -explorer_max_leafnodes = 50 -hits_per_page = 10 - -[params.search_config2.recommendations] -# We currently don't have a test environment filled with recommendation data. -app_id = "KGUN8FAIPF" -api_key = "d364d8e601808b96178d0776ed43b2c9" -target_index = "linode-merged" - - -# Holds configuration for the index with all of the sections merged in. -[params.search_config2.sections_merged] -name = "merged" -index = "linode-merged" -index_by_pubdate = "linode-merged-sorted" -title = "All" -noun = "All" -hits_per_page = 20 -filtering_facets = [ - { name = "docType", title = "Doc Type" }, - { name = "category", title = "Category" }, - { name = "tags", title = "Tags", isTags = true }, -# { name = "authors", title = "Authors", isTags = true } -] - -# Note there is a search_config also in the docs project, which would win over this. -# This is a refactored version to better separate the UI with the more technical configuration, -# and to make it easier/possible to merge configurations and override setting via OS env. -[params.search_config2.sections] -[params.search_config2.sections.products] -name = "products" -weight = 35 # Used to order the sections in the UI. Higher comes first. -title = "Products" -noun = "Product Guide" -static_link_url = "https://techdocs.akamai.com/cloud-computing/docs/" -filters = "section.lvl0:products" -# The icons are fetched from layouts/sections/navigation/explorer-icons.html -explorer_icon = "#icon-explorer--products" - -[params.search_config2.sections.guides] -name = "guides" -filters = "section.lvl0:guides" -weight = 10 -title = "Cloud Guides & Tutorials" -noun = "Guide" -explorer_icon = "#icon-explorer--guides" - -[params.search_config2.sections.api] -name = "api" -index = "linode-documentation-api" -static_link_url = "https://techdocs.akamai.com/linode-api/reference/api" -filters = "section.lvl0:api" -weight = 40 -title = "API" -explorer_icon = "#icon-explorer--api" - -[params.search_config2.sections.reference-architecture] -name = "reference-architecture" -filters = "section.lvl0:guides" -weight = 20 -title = "Reference Architectures" -noun = "Reference" -explorer_icon = "#icon-explorer--reference-architecture" - -[params.search_config2.sections.marketplace-docs] -name = "marketplace-docs" -weight = 25 -title = "Marketplace Docs" -noun = "Marketplace" -filters = "section.lvl0:marketplace-docs" -explorer_icon = "#icon-explorer--marketplace" - -[params.search_config2.sections.blog] -name = "blog" -weight = 50 -title = "Blog" -seo_title_template = "Linode Blog | Linode" -seo_title_template_category = "Linode Blog | {category} | Linode" -noun = "Post" -filters = "section.lvl0:Blog" -explorer_icon = "#icon-explorer--blog" -static_link_url = "https://www.linode.com/blog/" - -[params.search_config2.sections.resources] -name = "resources" -filters = "section.lvl0:Resources" -weight = 60 -title = "Content Resources" -noun = "Content Resource" -seo_title_template = "Cloud Computing Resources | Linode" -seo_title_template_category = "Cloud Computing {category} | Linode" -explorer_icon = "#icon-explorer--resources" -static_link_url = "https://www.linode.com/content/" + time_format_iso8601 = "2006-01-02T15:04:05-07:00" + + weglot_api_key = "wg_3b3ef29c81aa81292c64d1368ee318969" + + # # Adobe Analytics script used in production. + # For development/staging, see the config dir. + adobe_launch_script = "https://assets.adobedtm.com/fcfd3580c848/f9e7661907ee/launch-2fb69de42220.min.js" + + # OneTrust Domain used in production. + onetrust_script_src = "https://www.linode.com/ns/ot/202410.1.0/prod/scripttemplates/otSDKStub.js" + onetrust_domain_script = "01922358-0e47-73fa-9452-fa124177d6d6" + + [params.marketplace_deploy_this_app_button] + base_url = "https://cloud.linode.com/linodes/create" + # The text to display on the button. + button_name = "Deploy in Cloud Manager" + # Configuration for Deploy This App button in marketplace guides + # Override this section in the docs repo's config if needed. + # The query param to use for the app_id in the URL. + app_id_query_param = "appID" + # Front matter key used to store the app ID. + app_id_frontmatter_param = "marketplace_app_id" + # Front matter key used to store the name used for utm_campaign. + app_name_frontmatter_param = "marketplace_app_name" + # Static query params to add to the URL. + [params.marketplace_deploy_this_app_button.query_params] + utm_medium = "website" + type = "One-Click" + utm_source = "marketplace" + + # Configuration for the contextual menu over content items that + # allows the user to send specific feedback/issue about the content + # to GitHub. + # We currently pass attribute 'context' and 'file' prefilled from the front-end. + [params.file_issue_button] + enable = true + repo_url = "https://github.com/bep/githubissuestest" + [[params.file_issue_button.issue_templates]] + # The id maps to a GitHub issue template in the repository. + id = "issue-template-1.yml" + # The title is what gets shown in the contextual menu. + title = "Report a problem" + [[params.file_issue_button.issue_templates]] + id = "issue-template-2.yml" + title = "Report something else" + + [params.search_config2] + + app_id = "KGUN8FAIPF" + api_key = "d364d8e601808b96178d0776ed43b2c9" + meta_index = "linode-documentation-sections" + index_prefix = "" + click_analytics = true + + explorer_max_leafnodes = 50 + hits_per_page = 10 + + [params.search_config2.recommendations] + # We currently don't have a test environment filled with recommendation data. + app_id = "KGUN8FAIPF" + api_key = "d364d8e601808b96178d0776ed43b2c9" + target_index = "linode-merged" + + # Holds configuration for the index with all of the sections merged in. + [params.search_config2.sections_merged] + name = "merged" + index = "linode-merged" + index_by_pubdate = "linode-merged-sorted" + title = "All" + noun = "All" + hits_per_page = 20 + filtering_facets = [ + { name = "docType", title = "Doc Type" }, + { name = "category", title = "Category" }, + { name = "tags", title = "Tags", isTags = true }, + # { name = "authors", title = "Authors", isTags = true } + ] + + # Note there is a search_config also in the docs project, which would win over this. + # This is a refactored version to better separate the UI with the more technical configuration, + # and to make it easier/possible to merge configurations and override setting via OS env. + [params.search_config2.sections] + [params.search_config2.sections.products] + name = "products" + weight = 35 # Used to order the sections in the UI. Higher comes first. + title = "Products" + noun = "Product Guide" + static_link_url = "https://techdocs.akamai.com/cloud-computing/docs/" + filters = "section.lvl0:products" + # The icons are fetched from layouts/sections/navigation/explorer-icons.html + explorer_icon = "#icon-explorer--products" + + [params.search_config2.sections.guides] + name = "guides" + filters = "section.lvl0:guides" + weight = 10 + title = "Cloud Guides & Tutorials" + noun = "Guide" + explorer_icon = "#icon-explorer--guides" + + [params.search_config2.sections.api] + name = "api" + index = "linode-documentation-api" + static_link_url = "https://techdocs.akamai.com/linode-api/reference/api" + filters = "section.lvl0:api" + weight = 40 + title = "API" + explorer_icon = "#icon-explorer--api" + + [params.search_config2.sections.reference-architecture] + name = "reference-architecture" + filters = "section.lvl0:guides" + weight = 20 + title = "Reference Architectures" + noun = "Reference" + explorer_icon = "#icon-explorer--reference-architecture" + + [params.search_config2.sections.marketplace-docs] + name = "marketplace-docs" + weight = 25 + title = "Marketplace Docs" + noun = "Marketplace" + filters = "section.lvl0:marketplace-docs" + explorer_icon = "#icon-explorer--marketplace" + + [params.search_config2.sections.blog] + name = "blog" + weight = 50 + title = "Blog" + seo_title_template = "Linode Blog | Linode" + seo_title_template_category = "Linode Blog | {category} | Linode" + noun = "Post" + filters = "section.lvl0:Blog" + explorer_icon = "#icon-explorer--blog" + static_link_url = "https://www.linode.com/blog/" + + [params.search_config2.sections.resources] + name = "resources" + filters = "section.lvl0:Resources" + weight = 60 + title = "Content Resources" + noun = "Content Resource" + seo_title_template = "Cloud Computing Resources | Linode" + seo_title_template_category = "Cloud Computing {category} | Linode" + explorer_icon = "#icon-explorer--resources" + static_link_url = "https://www.linode.com/content/" [module] -[[module.mounts]] -source = "content" -target = "content" + [[module.mounts]] + source = "content" + target = "content" -[[module.mounts]] -source = "i18n" -target = "i18n" + [[module.mounts]] + source = "i18n" + target = "i18n" -[[module.mounts]] -source = "layouts" -target = "layouts" + [[module.mounts]] + source = "layouts" + target = "layouts" -[[module.mounts]] -source = "assets" -target = "assets" + [[module.mounts]] + source = "assets" + target = "assets" -[[module.mounts]] -source = "static" -target = "static" + [[module.mounts]] + source = "static" + target = "static" -# The common static footer and header. -[[module.imports]] -path = "github.com/linode/linode-website-partials" + # The common static footer and header. + [[module.imports]] + path = "github.com/linode/linode-website-partials" -[[module.imports.mounts]] -source = "header.html" -target = "layouts/partials/linode-header.html" + [[module.imports.mounts]] + source = "header.html" + target = "layouts/partials/linode-header.html" -[[module.imports.mounts]] -source = "footer.html" -target = "layouts/partials/linode-footer.html" + [[module.imports.mounts]] + source = "footer.html" + target = "layouts/partials/linode-footer.html" -[[module.imports.mounts]] -source = "header.css" -target = "assets/linode/header.css" + [[module.imports.mounts]] + source = "header.css" + target = "assets/linode/header.css" -[[module.imports.mounts]] -source = "footer.css" -target = "assets/linode/footer.css" + [[module.imports.mounts]] + source = "footer.css" + target = "assets/linode/footer.css" -[[module.imports.mounts]] -source = "header.js" -target = "assets/linode/header.js" + [[module.imports.mounts]] + source = "header.js" + target = "assets/linode/header.js" -[[module.imports.mounts]] -source = "footer-inline.js" -target = "assets/linode/footer-inline.js" + [[module.imports.mounts]] + source = "footer-inline.js" + target = "assets/linode/footer-inline.js" -[[module.imports.mounts]] -source = "attribution-inline.js" -target = "assets/linode/attribution-inline.js" + [[module.imports.mounts]] + source = "attribution-inline.js" + target = "assets/linode/attribution-inline.js" -# JS components packaged as Hugo Modules. -[[module.imports]] -path = "github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3" + # JS components packaged as Hugo Modules. + [[module.imports]] + path = "github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3" -[[module.imports]] -path = "github.com/gohugoio/hugo-mod-jslibs/turbo/v8" + [[module.imports]] + path = "github.com/gohugoio/hugo-mod-jslibs/turbo/v8" [security] enableInlineShortcodes = false diff --git a/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/content/products/title-byline.html b/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/content/products/title-byline.html index e027ee5523d..d36fe4b9984 100644 --- a/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/content/products/title-byline.html +++ b/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/content/products/title-byline.html @@ -2,8 +2,61 @@ class="font-semibold leading-tight tracking-tight text-4xl text-titlecolor w-full"> {{ partial "funcs/get-page-title-h1.html" . }} -
+ {{ . | $.RenderString }} +
+{{ end }} + +{{ define "products-lastmod" }} + {{ if and (eq .PublishDate.Year .Lastmod.Year) (eq .PublishDate.YearDay .Lastmod.YearDay) }} Published {{ else }} @@ -13,16 +66,4 @@ >{{ .Lastmod.Format site.Params.time_format_default }} - -- {{ . | $.RenderString }} -
{{ end }} diff --git a/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/search/create-cachewarmers-urls.html b/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/search/create-cachewarmers-urls.html index d9e4b9f37c5..bd17649d018 100644 --- a/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/search/create-cachewarmers-urls.html +++ b/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/search/create-cachewarmers-urls.html @@ -39,24 +39,19 @@ {{ $globalTargetPathLayout := "cachewarmers/global/%s.json" }} {{ with $res }} - {{ with .Err }} - {{ erroridf "algolia-cachewarmer" "Failed to warm Algolia cache: %s" . }} - {{ else }} - {{/* Create one JSON file per Algolia result. */}} - {{ $data := .Content | transform.Unmarshal }} - - {{ range $i, $e := $queries }} - {{ $name := path.Base $e.Name | strings.TrimSuffix ".json" }} - - {{ $targetPath := printf $globalTargetPathLayout $name }} - {{ $res := index $data.results $i }} - {{ $targetResource := resources.FromString $targetPath (jsonify $res) }} - {{ if (ne hugo.Environment "development") }} - {{ $targetResource = $targetResource | minify }} - {{ end }} - {{ $resourcem = merge $resourcem (dict $name $targetResource.RelPermalink) }} - {{ $datam = merge $datam (dict $name $res) }}} + {{/* Create one JSON file per Algolia result. */}} + {{ $data := .Content | transform.Unmarshal }} + {{ range $i, $e := $queries }} + {{ $name := path.Base $e.Name | strings.TrimSuffix ".json" }} + + {{ $targetPath := printf $globalTargetPathLayout $name }} + {{ $res := index $data.results $i }} + {{ $targetResource := resources.FromString $targetPath (jsonify $res) }} + {{ if (ne hugo.Environment "development") }} + {{ $targetResource = $targetResource | minify }} {{ end }} + {{ $resourcem = merge $resourcem (dict $name $targetResource.RelPermalink) }} + {{ $datam = merge $datam (dict $name $res) }}} {{ end }} {{ else }} {{ $help := "" }} diff --git a/_vendor/github.com/linode/linode-website-partials/footer.css b/_vendor/github.com/linode/linode-website-partials/footer.css index 631db11c601..44a793e4d0a 100644 --- a/_vendor/github.com/linode/linode-website-partials/footer.css +++ b/_vendor/github.com/linode/linode-website-partials/footer.css @@ -20,111 +20,135 @@ .c-site-footer__primary { background-color: #ffffff; border-top: 1px solid var(--divider-color); - color: #65686c; + color: #32363b; font-size: 0.875rem; line-height: 1.2857142857; margin-top: -1px; padding-bottom: 56px; padding-top: 24px; } -.c-site-footer__primary .o-layout__colset { - max-width: none; -} -.c-site-footer__primary .c-identity { - margin-top: 32px; +.c-site-footer__primary .o-layout__col { + display: flex; + flex-direction: column; } .c-site-footer__primary .o-menu__heading { - color: var(--h6-color, var(--heading-color)); - color: #32363b; - font-family: "Source Sans Pro", sans-serif; - font-size: 1.125rem; + color: #000000; + font-size: 0.875rem; font-weight: 600; - letter-spacing: -0.015625rem; - line-height: 1.3333333333; - margin: 32px 0 10px; -} -@media (max-width: 47.99em) { - .c-site-footer__primary .o-menu__heading { - font-size: 0.875rem; - line-height: 1.5714285714; - } + line-height: 1.2857142857; + margin: 8px 0 20px; + text-transform: uppercase; } .c-site-footer__primary .o-menu__list { gap: 10px; } +@media (min-width: 48em) { + .c-site-footer__primary .o-layout__col--2 { + grid-column: span 2; + } + .c-site-footer__primary .o-layout__col--2 .o-menu__list { + -moz-column-count: 2; + column-count: 2; + -moz-column-gap: 16px; + column-gap: 16px; + display: block; + } + .c-site-footer__primary .o-layout__col--2 .o-menu__item { + margin-bottom: 10px; + } +} .c-site-footer__primary .o-menu__link:hover { text-decoration: underline; } .c-site-footer__primary .o-menu__link:hover * { text-decoration: inherit; } -.c-site-footer__primary svg.o-icon { - height: 1em; - width: 1em; +.c-site-footer__primary .o-layout__colset--a { + grid-template-columns: 1fr 1fr 1fr 1fr 1fr; +} +@media (min-width: 48em) and (max-width: 61.99em) { + .c-site-footer__primary .o-layout__colset--a { + grid-template-columns: 1fr 1fr 1fr; + } +} +@media (max-width: 47.99em) { + .c-site-footer__primary .o-layout__colset--a { + grid-template-columns: 1fr; + } +} +.c-site-footer__primary .o-layout__colset--b { + padding-inline: 8px; + padding-top: 16px; +} +.c-site-footer__primary .o-layout__colset--b .o-layout__col { + border-bottom: 1px solid black; + justify-content: center; +} +.c-site-footer__primary .o-layout__colset--b .o-layout__col:first-child .o-layout__module { + margin-left: 0; +} +.c-site-footer__primary .o-layout__colset--b .o-layout__col:last-child .o-layout__module { + margin-right: 0; +} +.c-site-footer__primary .o-layout__colset--b .o-layout__col:last-child { + align-items: flex-end; +} +@media (max-width: 47.99em) { + .c-site-footer__primary .o-layout__colset--b .o-layout__module { + margin-block: 8px; + } + .c-site-footer__primary .o-layout__colset--b .c-social { + transform: translateY(6px); + } +} +.c-site-footer__primary .o-layout__colset--c { + color: #000000; + font-weight: 600; +} +@media (min-width: 48em) { + .c-site-footer__primary .o-layout__colset--c .o-menu__list { + gap: 36px; + } +} +@media (max-width: 47.99em) { + .c-site-footer__primary .o-layout__colset--c .o-layout__module { + margin-top: 32px; + } + .c-site-footer__primary .o-layout__colset--c .o-menu__list { + align-items: flex-start; + flex-direction: column; + } } .c-site-footer__primary .c-consent { display: flex; } -.c-site-footer__primary .c-social svg { +.c-site-footer__primary .c-social { + display: flex; + gap: 12px; +} +.c-site-footer__primary .c-social a { + display: inline-flex; + padding: 2px; +} +.c-site-footer__primary .c-social svg.o-icon { color: #32363b; + height: 20px; + width: 20px; +} +.c-site-footer__primary .c-identity__logo { + padding: 0; +} + +.c-site-footer:not(.--v3) .c-site-footer__primary .o-layout__colset { + max-width: none; } @media (min-width: 48em) { - .c-site-footer__primary .--mobile { + .c-site-footer:not(.--v3) .c-site-footer__primary .--mobile { display: none; } } @media (max-width: 47.99em) { - .c-site-footer__primary { - padding-bottom: 0; - padding-top: 0; - } - .c-site-footer__primary .o-layout__col:nth-child(n+2) { + .c-site-footer:not(.--v3) .c-site-footer__primary .o-layout__col:nth-child(n+2) { display: none; } - .c-site-footer__primary .o-layout__module.--mobile { - border-top: 1px solid #ededf4; - padding: 16px 16px 0; - } - .c-site-footer__primary .o-menu__heading { - border: 0 !important; - clip: rect(0 0 0 0) !important; - clip-path: inset(50%) !important; - height: 1px !important; - margin: -1px !important; - overflow: hidden !important; - padding: 0 !important; - position: absolute !important; - white-space: nowrap !important; - width: 1px !important; - } - .c-site-footer__primary .o-menu__list { - -moz-column-count: 2; - column-count: 2; - display: block; - } - .c-site-footer__primary .o-menu__item { - margin: 0 0 16px; - } - .c-site-footer__primary .c-identity__link { - text-align: center; - } - .c-site-footer__primary .c-identity__image { - display: inline-block; - max-width: 144px; - } - .c-site-footer__primary .c-copyright { - text-align: center; - } - .c-site-footer__primary .c-consent { - justify-content: center; - } - .c-site-footer__primary .c-social { - display: flex; - flex-direction: row; - font-size: 1.5rem; - justify-content: center; - } - .c-site-footer__primary .c-social a { - padding: 8px 12px; - } } diff --git a/_vendor/github.com/linode/linode-website-partials/footer.html b/_vendor/github.com/linode/linode-website-partials/footer.html index 4f537de4c88..09b9019c1a6 100644 --- a/_vendor/github.com/linode/linode-website-partials/footer.html +++ b/_vendor/github.com/linode/linode-website-partials/footer.html @@ -1,4 +1,4 @@ -