diff --git a/_vendor/github.com/linode/linode-docs-theme/assets/js/main/navigation/explorer.js b/_vendor/github.com/linode/linode-docs-theme/assets/js/main/navigation/explorer.js index 6a213115992..c7ed747b30f 100644 --- a/_vendor/github.com/linode/linode-docs-theme/assets/js/main/navigation/explorer.js +++ b/_vendor/github.com/linode/linode-docs-theme/assets/js/main/navigation/explorer.js @@ -132,12 +132,18 @@ export function newSearchExplorerHydrated(searchConfig) { (n) => n.level === 1 && n.key !== 'bundles' && n.key != 'community', ); - // Manually add the product section with count -1 to signal a static link. + // Manually add the product and api section with count -1 to signal a static link. rootNodes.push({ key: 'products', count: -1, level: 1, }); + rootNodes.push({ + key: 'api', + count: -1, + level: 1, + }); + // Apply explorer_icon and weight from searchConfig.sections. rootNodes.forEach((n) => { let section = searchConfig.sections[n.key.toLowerCase()]; diff --git a/_vendor/github.com/linode/linode-docs-theme/assets/js/main/search/search-store.js b/_vendor/github.com/linode/linode-docs-theme/assets/js/main/search/search-store.js index 83339bc0762..4fbbc9e8985 100644 --- a/_vendor/github.com/linode/linode-docs-theme/assets/js/main/search/search-store.js +++ b/_vendor/github.com/linode/linode-docs-theme/assets/js/main/search/search-store.js @@ -119,8 +119,8 @@ export function newSearchStore(searchConfig, params, Alpine) { keyOpenStack: [], }, - docsearchLink: function () { - return `https://docsearch.akamai.com/s/global-search/${this.query.lndq}?s=Akamai%20TechDocs&ds=Akamai%20cloud%20computing`; + docsearchLink: function (ds) { + return `https://docsearch.akamai.com/s/global-search/${this.query.lndq}?s=Akamai%20TechDocs&ds=${ds}`; }, shouldShowHydratedExplorer: function () { @@ -378,7 +378,9 @@ export function newSearchStore(searchConfig, params, Alpine) { let q = ''; // TODO(bep) we have removed the QA section from explorer/search, but the // data is still there. The docType filter below can be remove when we have completed the migration. - let filters = sectionConfig.filters || 'NOT docType:community AND NOT docType:products AND NOT docType:Marketplace'; + let filters = + sectionConfig.filters || + 'NOT docType:community AND NOT docType:products AND NOT docType:api AND NOT docType:Marketplace'; let facetFilters = []; let attributesToHighlight = []; let analyticsTags = []; @@ -519,7 +521,7 @@ const normalizeResult = function (self, result) { Object.entries(v).forEach(([kk, vv]) => { // TODO(bep) we have removed the QA and products section from explorer/search, but the // data is still there. The docType filter below can be remove when we have completed the migration. - if (k == 'docType' && (kk == 'community' || kk == 'products')) { + if (k == 'docType' && (kk == 'community' || kk == 'products' || kk == 'api')) { return; } let m = self.metaProvider.getSectionMeta(kk.toLocaleLowerCase()); diff --git a/_vendor/github.com/linode/linode-docs-theme/assets/json/search_cachewarmer_queries/explorer-blank.json b/_vendor/github.com/linode/linode-docs-theme/assets/json/search_cachewarmer_queries/explorer-blank.json index 61bd17d0ec1..1a1c4d84d12 100644 --- a/_vendor/github.com/linode/linode-docs-theme/assets/json/search_cachewarmer_queries/explorer-blank.json +++ b/_vendor/github.com/linode/linode-docs-theme/assets/json/search_cachewarmer_queries/explorer-blank.json @@ -2,5 +2,5 @@ "indexName": "linode-merged", "facets": ["section.*", "docType", "category", "tags"], "distinct": 1, - "filters": "NOT docType:community AND NOT docType:products AND NOT docType:Marketplace" + "filters": "NOT docType:community AND NOT docType:products AND NOT docType:api AND NOT docType:Marketplace" } diff --git a/_vendor/github.com/linode/linode-docs-theme/config.toml b/_vendor/github.com/linode/linode-docs-theme/config.toml index 4121ffa3c01..45e0cea7e2f 100644 --- a/_vendor/github.com/linode/linode-docs-theme/config.toml +++ b/_vendor/github.com/linode/linode-docs-theme/config.toml @@ -70,6 +70,7 @@ 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 = 30 title = "API" diff --git a/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/navigation/explorer-hydrated.html b/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/navigation/explorer-hydrated.html index 48a41cd1e21..d65d6f74af6 100644 --- a/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/navigation/explorer-hydrated.html +++ b/_vendor/github.com/linode/linode-docs-theme/layouts/partials/sections/navigation/explorer-hydrated.html @@ -86,7 +86,7 @@
- Product docs are now on Akamai TechDocs.
+ Product docs and API reference are now on Akamai TechDocs.
Search product docs.” in product docs.
+
+
+
+ Search API reference.
+
+ Search for “” in API reference.
+