Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module documentation
go 1.24.4

require (
github.com/DataDog/websites-modules v1.4.253 // indirect
github.com/DataDog/websites-sources v0.0.0-20250828091749-eacc662bc57d // indirect
github.com/DataDog/websites-modules v1.4.258 // indirect
github.com/DataDog/websites-sources v0.0.0-20250909090410-76fb33ea5f2b // indirect
)

// replace github.com/DataDog/websites-modules => /Users/lisiane.turlure/guac/websites-modules
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/DataDog/websites-modules v1.4.253 h1:Sd+5ILFUVOyagh3oUMyc0onM7bykJy0asO9ObLgx4ms=
github.com/DataDog/websites-modules v1.4.253/go.mod h1:CcQxAmCXoiFr3hNw6Q+1si65C3uOP1gB+7aX4S3h+CQ=
github.com/DataDog/websites-sources v0.0.0-20250828091749-eacc662bc57d h1:84GEOhZ+qj9EsFuZ1LWqyzba+eIkRf5B/2KhT8RNRI4=
github.com/DataDog/websites-sources v0.0.0-20250828091749-eacc662bc57d/go.mod h1:DlDYkYoR/nhKYRur0+2jmGGc7ydk8Q0ybWkS6oaLVuo=
github.com/DataDog/websites-modules v1.4.258 h1:lglv/re8n0PHNhOxxzDhhxJwVY/mWKWZDtn4mokcS6E=
github.com/DataDog/websites-modules v1.4.258/go.mod h1:0pAe0O1KehxRBoWbXv2H3tHgMpd1kZylyQhFADlLpd0=
github.com/DataDog/websites-sources v0.0.0-20250909090410-76fb33ea5f2b h1:zLOZu2Qb/KinqeBGNQHFB4AQAWQSU5gEzKtMRso99Fw=
github.com/DataDog/websites-sources v0.0.0-20250909090410-76fb33ea5f2b/go.mod h1:DlDYkYoR/nhKYRur0+2jmGGc7ydk8Q0ybWkS6oaLVuo=
2 changes: 1 addition & 1 deletion layouts/_default/list.partners.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ $rel_path := "" }}

{{ with $page.File }}
{{ $rel_path = (print .Lang "/" .Path) }}
{{ $rel_path = (print $page.Language.Lang "/" .Path) }}
{{ end }}

{{ $object_id := md5 $rel_path }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/list.search.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{ if and ($page.IsDescendant $section) (ne $page.Params.type "partners") (ne $page.Params.private true) (not (in $page.RelPermalink "/faq")) (not $page.Draft) (not (isset .Params "external_redirect")) }}
{{ $rel_path := "" }}
{{ with $page.File }}
{{ $rel_path = (print .Lang "/" .Path) }}
{{ $rel_path = (print $page.Language.Lang "/" .Path) }}
{{ end }}
{{ $object_id := md5 $rel_path }}
{{ $title := $page.Params.integration_title | default $page.Title }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/api/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
{{ with index .Site.Menus "api" }}
{{ $dot.Scratch.Set "menu" . }}
{{ else }}
{{ $dot.Scratch.Set "menu" (index .Sites.First.Menus "api") }}
{{ $dot.Scratch.Set "menu" (index .Sites.Default.Menus "api") }}
{{ end }}
{{ $menu := .Scratch.Get "menu" }}

Expand All @@ -66,7 +66,7 @@
{{ partial "api/intro.html" (dict "api" $dot.Site.Data.api "title" $ParamTitleEn "translate_tag" $translate_tag) }}

<!-- Loop over the menu to determine what to pull in -->
{{ range (where .Sites.First.Menus.api ".Name" "==" $ParamTitleEn) }}
{{ range (where .Sites.Default.Menus.api ".Name" "==" $ParamTitleEn) }}
{{ range $menuChild := sort .Children ".Params.order" "asc" }}

{{ $anchorStr := $menuChild.Name }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/algolia/glossary.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- with $headless := $hugo_context.Site.GetPage "/glossary/terms" -}}
{{- range $headless.Resources.ByType "page" -}}
{{- $page := . -}}
{{- $object_id := (print $glossaryPage.File.UniqueID "_" $headless.File.Lang "_" ($page.Params.Title | anchorize)) -}}
{{- $object_id := (print $glossaryPage.File.UniqueID "_" $headless.Language.Lang "_" ($page.Params.Title | anchorize)) -}}
{{- $relpermalink := print $glossaryPage.RelPermalink "#" ($page.Params.Title | anchorize) -}}
{{- $content := .Plain -}}
{{
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/algolia/page-sections.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{{- if gt (len $c) 2 -}}
{{- $full_url := print $page.Permalink "#" ($section_header | anchorize) -}}
{{- $relpermalink := print $page.RelPermalink "#" ($section_header | anchorize) -}}
{{- $object_id := (print $page.File.UniqueID "_" $page.File.Lang "_" ($section_header | anchorize) "_" $i "_" $order) -}}
{{- $object_id := (print $page.File.UniqueID "_" $page.Language.Lang "_" ($section_header | anchorize) "_" $i "_" $order) -}}
{{- $hugo_context.Scratch.Add "algoliaindex" (
dict "objectID" $object_id
"id" $object_id
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/algolia/standard-attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- $page := $hugo_context.Site.GetPage "/standard-attributes/" -}}

{{- range $attr := $page.Params.attributes -}}
{{- $object_id := (print $page.File.UniqueID "_" $page.File.Lang "_" ($attr.name | anchorize)) -}}
{{- $object_id := (print $page.File.UniqueID "_" $page.Language.Lang "_" ($attr.name | anchorize)) -}}
{{- $relpermalink := print $page.RelPermalink "?search=" $attr.name -}}
{{
$hugo_context.Scratch.Add "algoliaindex" (
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/language-region-select.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<a class="dropdown-item" href="{{ .Permalink }}?lang_pref={{ .Language.Lang }}" {{ if ne .Language.Lang "en" }} data-lang="{{ .Language.Lang }}"{{end}}>{{ .Language.LanguageName }}</a>

<!-- Manually adding English option to non-English sites -->
{{ if ne .Sites.First .Site }}
{{ if ne .Sites.Default .Site }}
<a class="dropdown-item" href="{{ replace .Permalink (printf "/%s/" .Language.Lang) "/" }}?lang_pref=en">English</a>
{{ end }}

Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/nav/left-nav-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ with index .Site.Menus $apiMenu }}
{{ $dot.Scratch.Set "menu" . }}
{{ else }}
{{ $dot.Scratch.Set "menu" (index .Sites.First.Menus $apiMenu) }}
{{ $dot.Scratch.Set "menu" (index .Sites.Default.Menus $apiMenu) }}
{{ end }}
{{ $menu := .Scratch.Get "menu" }}

Expand All @@ -29,7 +29,7 @@
for use in providing english names for anchoring the nav-links (.nav-link)
*/}}
{{ if ne $currentPage.Lang "en" }}
{{$engMenu := (index .Sites.First.Menus $apiMenu) }}
{{$engMenu := (index .Sites.Default.Menus $apiMenu) }}
{{ range $engMenu }}
{{ if and (.HasChildren) (ne $currentPage.CurrentSection.RelPermalink "/api/") }}
{{ range .Children }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/nav/left-nav-partners.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ with index .Site.Menus $partnersMenu }}
{{ $dot.Scratch.Set "menu" . }}
{{ else }}
{{ $dot.Scratch.Set "menu" (index .Sites.First.Menus $partnersMenu) }}
{{ $dot.Scratch.Set "menu" (index .Sites.Default.Menus $partnersMenu) }}
{{ end }}
{{ $menu := .Scratch.Get "menu" }}

Expand All @@ -31,7 +31,7 @@
for use in providing english names for anchoring the nav-links (.nav-link)
*/}}
{{ if ne $currentPage.Lang "en" }}
{{$engMenu := (index .Sites.First.Menus $partnersMenu) }}
{{$engMenu := (index .Sites.Default.Menus $partnersMenu) }}
{{ range $engMenu }}
{{ if and (.HasChildren) (ne $currentPage.CurrentSection.RelPermalink "/partners/") }}
{{ range .Children }}
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/include-markdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{ .Content }}
{{- else -}}
{{ warnf "[include-markdown shortcode] Page %s not found in %s (language: %s). Using default english page" $page .Page.File.Path .Page.Lang }}
{{ with .Site.Sites.First.GetPage $page }}
{{ with .Site.Sites.Default.GetPage $page }}
{{/* use english (first site) markdown for Content as default */}}
{{ .Content }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"docs-llms-txt": "https://s3.amazonaws.com/origin-static-assets/corp-node-packages/master/docs-llms-txt-v1.0.0.tgz",
"fancy-log": "^1.3.3",
"geo-locate": "https://s3.amazonaws.com/origin-static-assets/corp-node-packages/master/geo-locate-v1.0.2.tgz",
"hugo-bin": "0.123.0",
"hugo-bin": "0.139.0",
"instantsearch.js": "^4.74.1",
"js-cookie": "^2.2.1",
"js-yaml": "^3.14.1",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7656,7 +7656,7 @@ __metadata:
eslint-plugin-standard: ^4.1.0
fancy-log: ^1.3.3
geo-locate: "https://s3.amazonaws.com/origin-static-assets/corp-node-packages/master/geo-locate-v1.0.2.tgz"
hugo-bin: 0.123.0
hugo-bin: 0.139.0
husky: ^9.1.7
instantsearch.js: ^4.74.1
jest: ^25.5.4
Expand Down Expand Up @@ -10134,15 +10134,15 @@ __metadata:
languageName: node
linkType: hard

"hugo-bin@npm:0.123.0":
version: 0.123.0
resolution: "hugo-bin@npm:0.123.0"
"hugo-bin@npm:0.139.0":
version: 0.139.0
resolution: "hugo-bin@npm:0.139.0"
dependencies:
"@xhmikosr/bin-wrapper": ^13.0.5
package-config: ^5.0.0
bin:
hugo: bin/cli.js
checksum: 3d47b260622e182815da41d96f2d9f008145c7a76a931d34e9d69b3f81310390a4bff4a0666a8a5b90f304302c2d67c368ffba985af1dfe83577cf2b5687ba3b
checksum: 0afadc46fe5e98178f011d0dcb7b3ff0383bead31c2a44bcd77a772685bab4df915c592690b566b065cd7615388fee820e32e781bcb13c7a6fe5e6d6d9100928
languageName: node
linkType: hard

Expand Down
Loading