Skip to content

Commit b6ddba1

Browse files
authored
[i18n] Convert keep-up-to-date.md to an include (#6383)
1 parent 0ed24cd commit b6ddba1

12 files changed

+28
-16
lines changed

content/en/docs/languages/js/_browser-instrumentation-warning.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: # Bogus entry for markdownlint
33
_build: { list: never, render: never }
44
---
55

6-
{{% alert-md title=Warning color=warning %}}
6+
{{% alert title=Warning color=warning %}}
77

88
Client instrumentation for the browser is **experimental** and mostly
99
**unspecified**. If you are interested in helping out, get in touch with the
@@ -12,4 +12,4 @@ Client instrumentation for the browser is **experimental** and mostly
1212
[sig]:
1313
https://docs.google.com/document/d/16Vsdh-DM72AfMg_FIt9yT9ExEWF4A_vRbQ3jRNBe09w
1414

15-
{{% /alert-md %}}
15+
{{% /alert %}}
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: # bogus for markdownlint
3+
cascade:
4+
build: { list: never, render: never }
5+
---

layouts/shortcodes/ecosystem/keep-up-to-date.md content/en/ecosystem/_includes/keep-up-to-date.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
{{ $what := .Get 0 | default "organization" -}}
1+
---
2+
title: # bogus entry for markdownlint
3+
---
24

3-
## Keeping {{ $what }} information current
5+
## Keeping {{ $1 }} information current
46

5-
Ensure that you keep your {{ $what }} information up-to-date, otherwise we might
7+
Ensure that you keep your {{ $1 }} information up-to-date, otherwise we might
68
update or remove it from the registry or [ecosystem list]. For details, see
79
[Keeping registry information current](../registry/updating/).
810

content/en/ecosystem/adopters.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Adopters
33
description: Organizations that use OpenTelemetry
4-
# All spelling entries must be on a single line
54
---
65

76
OpenTelemetry's mission is to enable effective observability for all its
@@ -33,7 +32,7 @@ through OpenTelemetry, see [Integrations](/ecosystem/integrations/).
3332
If your organization provides a solution that consumes OpenTelemetry to offer
3433
**Observability to end users**, see [Vendors](/ecosystem/vendors).
3534

36-
{{% ecosystem/keep-up-to-date adopter %}}
35+
{{% include keep-up-to-date.md adopter %}}
3736

3837
[adopters list]:
3938
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/adopters.yaml

content/en/ecosystem/distributions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ To have your distribution listed, [submit a PR] with an entry added to the
4848

4949
[submit a PR]: /docs/contributing/pull-requests/
5050

51-
{{% ecosystem/keep-up-to-date distribution %}}
51+
{{% include keep-up-to-date.md distribution %}}
5252

5353
[distributions list]:
5454
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/distributions.yaml

content/en/ecosystem/integrations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ end users, see [Vendors](/ecosystem/vendors).
6868

6969
[submit a PR]: /docs/contributing/pull-requests/
7070

71-
{{% ecosystem/keep-up-to-date integration %}}
71+
{{% include keep-up-to-date.md integration %}}

content/en/ecosystem/vendors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ OpenTelemetry, see [Integrations](/ecosystem/integrations/).
4444

4545
[submit a PR]: /docs/contributing/pull-requests/
4646

47-
{{% ecosystem/keep-up-to-date vendor %}}
47+
{{% include keep-up-to-date.md vendor %}}
4848

4949
[vendors list]:
5050
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/vendors.yaml

content/pt/ecosystem/adopters.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Caso a sua organização ofereça uma solução que consome o OpenTelemetry para
3535
fornecer **Observabilidade aos usuários finais**, consulte
3636
[Fornecedores](/ecosystem/vendors).
3737

38-
{{% ecosystem/keep-up-to-date adopter %}}
38+
{{% include keep-up-to-date.md adopter %}}
3939

4040
[lista de adotantes]:
4141
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/adopters.yaml

content/pt/ecosystem/distributions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Para que sua distribuição seja listada, [envie um PR] com uma entrada adiciona
5252

5353
[envie um PR]: /docs/contributing/pull-requests/
5454

55-
{{% ecosystem/keep-up-to-date distribution %}}
55+
{{% include keep-up-to-date.md distribution %}}
5656

5757
[lista de distribuições]:
5858
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/distributions.yaml

content/pt/ecosystem/integrations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ observabilidade aos usuários finais, consulte
7474

7575
[envie um PR]: /docs/contributing/pull-requests/
7676

77-
{{% ecosystem/keep-up-to-date integration %}}
77+
{{% include keep-up-to-date.md integration %}}

content/pt/ecosystem/vendors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ meio do OpenTelemetry, consulte [Integrações](/ecosystem/integrations/).
4747

4848
[envie um PR]: /docs/contributing/pull-requests/
4949

50-
{{% ecosystem/keep-up-to-date vendor %}}
50+
{{% include keep-up-to-date.md vendor %}}
5151

5252
[lista de fornecedores]:
5353
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/vendors.yaml

layouts/shortcodes/include.md layouts/shortcodes/include.html

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
{{/* Use to include Markdown snippets. Note that the included content can have
22
calls to shortcodes. */ -}}
33

4-
{{ $path := .Get 0 -}}
4+
{{ $path := .Get (cond .IsNamedParams "file" 0) -}}
5+
{{ $args := .Params -}}
56
{{ $page := partial "func/find-include.html" (dict "path" $path "page" .Page) -}}
67
{{ with $page -}}
7-
{{ .Content -}}
8+
{{ $content := .RenderShortcodes -}}
9+
{{ range $k, $v := $args -}}
10+
{{ $regex := printf "\\{\\{\\s*\\$%s\\s*\\}\\}" (string $k) -}}
11+
{{ $content = replaceRE $regex $v $content -}}
12+
{{ end -}}
13+
{{ $content -}}
814
{{ else -}}
915
{{ $msg := printf
1016
"Can't include '%s': file not found in page or ancestor contexts of page %s."

0 commit comments

Comments
 (0)