Skip to content

Commit

Permalink
Redirect rule adjustment and other tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Nov 14, 2023
1 parent 707c1de commit 664951b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions content/en/schemas/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/index.html)
- [Latest](/schemas/latest) schema
- More information about [Telemetry Schemas] in general, or [OpenTelemetry
Schema] in particular.
Expand Down
7 changes: 0 additions & 7 deletions content/en/schemas/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ type: docs
body_class: ot-schema-list
---

{{% alert title="<i class=\"fa-solid fa-triangle-exclamation\"></i> 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).
Expand Down
4 changes: 2 additions & 2 deletions layouts/index.redirects
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ force = true
# Schemas

[[headers]]
for = "/schemas/"
for = "/schemas/index.yaml"
[headers.values]
content-type = "text/yaml"

Expand Down

0 comments on commit 664951b

Please sign in to comment.