Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[i18n] Convert keep-up-to-date.md to an include #6383

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: # Bogus entry for markdownlint
_build: { list: never, render: never }
---

{{% alert-md title=Warning color=warning %}}
{{% alert title=Warning color=warning %}}

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

{{% /alert-md %}}
{{% /alert %}}
5 changes: 5 additions & 0 deletions content/en/ecosystem/_includes/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: # bogus for markdownlint
cascade:
build: { list: never, render: never }
---
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{{ $what := .Get 0 | default "organization" -}}
---
title: # bogus entry for markdownlint
---

## Keeping {{ $what }} information current
## Keeping {{ $1 }} information current

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

Expand Down
3 changes: 1 addition & 2 deletions content/en/ecosystem/adopters.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
title: Adopters
description: Organizations that use OpenTelemetry
# All spelling entries must be on a single line
---

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

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

[adopters list]:
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/adopters.yaml
2 changes: 1 addition & 1 deletion content/en/ecosystem/distributions.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ To have your distribution listed, [submit a PR] with an entry added to the

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

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

[distributions list]:
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/distributions.yaml
2 changes: 1 addition & 1 deletion content/en/ecosystem/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ end users, see [Vendors](/ecosystem/vendors).

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

{{% ecosystem/keep-up-to-date integration %}}
{{% include keep-up-to-date.md integration %}}
2 changes: 1 addition & 1 deletion content/en/ecosystem/vendors.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ OpenTelemetry, see [Integrations](/ecosystem/integrations/).

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

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

[vendors list]:
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/vendors.yaml
2 changes: 1 addition & 1 deletion content/pt/ecosystem/adopters.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Caso a sua organização ofereça uma solução que consome o OpenTelemetry para
fornecer **Observabilidade aos usuários finais**, consulte
[Fornecedores](/ecosystem/vendors).

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

[lista de adotantes]:
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/adopters.yaml
2 changes: 1 addition & 1 deletion content/pt/ecosystem/distributions.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Para que sua distribuição seja listada, [envie um PR] com uma entrada adiciona

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

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

[lista de distribuições]:
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/distributions.yaml
2 changes: 1 addition & 1 deletion content/pt/ecosystem/integrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ observabilidade aos usuários finais, consulte

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

{{% ecosystem/keep-up-to-date integration %}}
{{% include keep-up-to-date.md integration %}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@open-telemetry/docs-pt-approvers @vitorvasc - I'll let you update the included word (here and in the other pt pages) name when you localize keep-up-to-date.md.

2 changes: 1 addition & 1 deletion content/pt/ecosystem/vendors.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ meio do OpenTelemetry, consulte [Integrações](/ecosystem/integrations/).

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

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

[lista de fornecedores]:
https://github.com/open-telemetry/opentelemetry.io/tree/main/data/ecosystem/vendors.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
{{/* Use to include Markdown snippets. Note that the included content can have
calls to shortcodes. */ -}}

{{ $path := .Get 0 -}}
{{ $path := .Get (cond .IsNamedParams "file" 0) -}}
{{ $args := .Params -}}
{{ $page := partial "func/find-include.html" (dict "path" $path "page" .Page) -}}
{{ with $page -}}
{{ .Content -}}
{{ $content := .RenderShortcodes -}}
{{ range $k, $v := $args -}}
{{ $regex := printf "\\{\\{\\s*\\$%s\\s*\\}\\}" (string $k) -}}
{{ $content = replaceRE $regex $v $content -}}
{{ end -}}
{{ $content -}}
{{ else -}}
{{ $msg := printf
"Can't include '%s': file not found in page or ancestor contexts of page %s."
Expand Down