diff --git a/content/en/schemas/_index.md b/content/en/schemas/_index.md index fab611c19c9d..5780e8d42fba 100644 --- a/content/en/schemas/_index.md +++ b/content/en/schemas/_index.md @@ -15,8 +15,8 @@ outputs: [HTML, YAML] The page or schema you requested doesn't exist. Maybe you're looking for one of these: -- [List of schemas](/schemas/list/) hosted on this site, also available in - [YAML format](/schemas/index.yaml) +- [List of schemas](/schemas/index.yaml) hosted on this site, also available in + a [human-readable format](/schemas/list/) - [Latest](/schemas/latest) schema - More information about [Telemetry Schemas] in general, or [OpenTelemetry Schema] in particular. diff --git a/content/en/schemas/list.md b/content/en/schemas/list.md index d616e9219669..520eb5db8eb2 100644 --- a/content/en/schemas/list.md +++ b/content/en/schemas/list.md @@ -5,13 +5,6 @@ type: docs body_class: ot-schema-list --- -{{% alert title=" Warning" color="warning" %}} - -This page, its content, and formatting are **non-normative** and **subject to -change**. In particular it is not meant for automated processing. - -{{% /alert %}} - The OpenTelemetry schemas hosted on this site are listed below. To learn more about schemas, see [Telemetry Schemas][]. The list is also available in [YAML format](/schemas/index.yaml). diff --git a/layouts/index.redirects b/layouts/index.redirects index 20a936e3ac9b..e7990ec80d12 100644 --- a/layouts/index.redirects +++ b/layouts/index.redirects @@ -47,10 +47,10 @@ {{ $schemaFiles := partial "schema-file-list" . -}} {{ $latestSchemaFile := index $schemaFiles 0 -}} -/schemas /schemas/index.yaml +/schemas /schemas/index.yaml 301! /schemas/latest /schemas/{{ $latestSchemaFile.Name }} /schemas/list /schemas/list/ 200 # Explicit rule to avoid the next catch all -/schemas/* /schemas/? 404 # Report 404 for anything else that's missing +/schemas/* /schemas/index.html 404 # Report 404 for anything else that's missing {{/* Social-media image redirects. As mentioned in diff --git a/layouts/schemas/section.yaml b/layouts/schemas/section.yaml index 3e9d2652509c..13008b2d6532 100644 --- a/layouts/schemas/section.yaml +++ b/layouts/schemas/section.yaml @@ -1,9 +1,9 @@ {{ $schemaFiles := partial "schema-file-list" . -}} {{ $latestSchemaFile := index $schemaFiles 0 -}} -# OpenTelemetry Schemas -# -# https://github.com/open-telemetry/semantic-conventions/tree/v{{ $latestSchemaFile.Name }}/schemas +# OpenTelemetry Schemas v{{ $latestSchemaFile.Name }} # +# For details, see https://opentelemetry.io/schemas/list + {{ $schemaFiles := partial "schema-file-list.html" . -}} {{- range $schemaFiles -}} - {{ .Name }} diff --git a/netlify.toml b/netlify.toml index 0b00b0c5b97d..c43d78d02c66 100644 --- a/netlify.toml +++ b/netlify.toml @@ -18,7 +18,7 @@ force = true # Schemas [[headers]] - for = "/schemas/" + for = "/schemas/index.yaml" [headers.values] content-type = "text/yaml"