-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docsy] Improve styles, change hero image
Signed-off-by: Patrice Chalin <chalin@users.noreply.github.com>
- Loading branch information
Showing
12 changed files
with
84 additions
and
26 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,37 @@ | ||
{{/* Source: https://github.com/open-telemetry/opentelemetry.io/blob/ddd8d43fff700effbe0047473071f9bab66ddb07/layouts/_default/_markup/render-link.html */ -}} | ||
|
||
{{ $url := .Destination -}} | ||
|
||
{{/* General link-render processing */ -}} | ||
|
||
{{ $isExternal := hasPrefix $url "http" -}} | ||
{{ if $isExternal -}} | ||
{{ if findRE "^https://opentelemetry.io/\\w" $url -}} | ||
{{ warnf "%s: use a local path, not an external URL, for the following reference to a site local page: %s" | ||
.Page.File.Path $url -}} | ||
{{ else if or | ||
(findRE "^https://github.com/open-telemetry/opentelemetry-specification/(blob|tree)/main/specification/\\w" $url) | ||
(findRE "^https://github.com/open-telemetry/opentelemetry-proto/(blob|tree)/main/docs/specification" $url) | ||
(findRE "^https://github.com/open-telemetry/semantic-conventions/(blob|tree)/main/docs" $url) | ||
-}} | ||
{{ warnf "%s: use a local path, not an external URL, for the following reference to a local specification page: %s" | ||
.Page.File.Path $url -}} | ||
{{ end -}} | ||
{{ end -}} | ||
|
||
{{/* Until Hugo supports hook params (https://github.com/gohugoio/hugo/issues/6670), we'll inspect .Text. */ -}} | ||
|
||
<a href="{{ $url | safeURL }}" | ||
{{- with .Title}} title="{{ . }}"{{ end -}} | ||
{{- if $isExternal }} target="_blank" rel="noopener" | ||
{{- $noExternalIcon := in .Text "hk-no-external-icon" -}} | ||
{{ if not $noExternalIcon }} class="external-link"{{ end -}} | ||
{{ end -}} | ||
> | ||
{{- .Text | safeHTML -}} | ||
</a> | ||
|
||
{{- /* | ||
cSpell:ignore warnf | ||
This comment ensures that all trailing whitespace is trimmed. | ||
*/ -}} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.