-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Schemas: add latest redirect, index page, fix content-type
- Loading branch information
Showing
5 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{/* | ||
Returns an array of schema files, sorted with the latest first. | ||
|
||
Each schema file name is a semver. Sorting semver can be tricky, so for now we | ||
just sort by file size, descending, which gives us the same as a semver sort. | ||
This works because each published schema contains the text of all previously | ||
published schemas, and hence must be larger in size. | ||
|
||
*/ -}} | ||
|
||
{{ $schemaFiles := readDir "content-modules/semantic-conventions/schemas" -}} | ||
{{ $schemaFilesSortedLatestFirst := sort $schemaFiles "Size" "desc" -}} | ||
{{ return $schemaFilesSortedLatestFirst -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters