File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 44
44
/docs/reference/specification/* /docs/specs/otel/:splat
45
45
/docs/specification/otel/* /docs/specs/otel/:splat
46
46
47
+ {{ $schemaFiles := partial "schema-file-list" . -}}
48
+ {{ $latestSchemaFile := index $schemaFiles 0 -}}
49
+
50
+ /schemas/latest /schemas/{{ $latestSchemaFile.Name }}
51
+
47
52
{{/*
48
53
Social-media image redirects. As mentioned in
49
54
https://developers.facebook.com/docs/sharing/webmasters/images, we need to
Original file line number Diff line number Diff line change
1
+ {{/*
2
+ Returns an array of schema files, sorted with the latest first.
3
+
4
+ Each schema file name is a semver. Sorting semver can be tricky, so for now we
5
+ just sort by file size, descending, which gives us the same as a semver sort.
6
+ This works because each published schema contains the text of all previously
7
+ published schemas, and hence must be larger in size.
8
+
9
+ */ -}}
10
+
11
+ {{ $schemaFiles := readDir "content-modules/semantic-conventions/schemas" -}}
12
+ {{ $schemaFilesSortedLatestFirst := sort $schemaFiles "Size" "desc" -}}
13
+ {{ return $schemaFilesSortedLatestFirst -}}
You can’t perform that action at this time.
0 commit comments