Skip to content

Commit

Permalink
Schemas: add index page
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Nov 6, 2023
1 parent 6507df0 commit ac33358
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
17 changes: 17 additions & 0 deletions content/en/schemas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: OpenTelemetry Schemas
linkTitle: Schemas
---

{{% blocks/section color="white" %}}

## {{% param title %}}

Available schemas are listed below. To learn more about schemas, see [Telemetry
Schemas][].

{{% schemas %}}

{{% /blocks/section %}}

[Telemetry Schemas]: /docs/specs/otel/schemas/#opentelemetry-schema
1 change: 1 addition & 0 deletions layouts/index.redirects
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
{{ $latestSchemaFile := index $schemaFiles 0 -}}

/schemas/latest /schemas/{{ $latestSchemaFile.Name }}
/schemas /schemas/ 404!

{{/*
Social-media image redirects. As mentioned in
Expand Down
4 changes: 4 additions & 0 deletions layouts/shortcodes/schemas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ $schemaFiles := partial "schema-file-list.html" . -}}
{{ range $schemaFiles }}
- [`{{ .Name }}`](/schemas/{{ .Name }})
{{- end -}}

0 comments on commit ac33358

Please sign in to comment.