-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: move docs-tooling into repo (#2460)
- Loading branch information
Showing
45 changed files
with
1,221 additions
and
27 deletions.
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
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 |
---|---|---|
|
@@ -108,3 +108,6 @@ LS0[a-zA-Z0-9]+ | |
|
||
# k8s CRD validation patterns | ||
pattern\: .*$ | ||
|
||
# GA tag | ||
G-[A-Z0-9]+ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
github.com/FortAwesome/Font-Awesome v0.0.0-20220831210243-d3a7818c253f h1:bvkUptSRPZBr3Kxuk+bnWCEmQ5MtEJX5fjezyV0bC3g= | ||
github.com/FortAwesome/Font-Awesome v0.0.0-20220831210243-d3a7818c253f/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= | ||
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo= | ||
github.com/google/docsy v0.6.0 h1:43bVF18t2JihAamelQjjGzx1vO2ljCilVrBgetCA8oI= | ||
github.com/google/docsy/dependencies v0.6.0 h1:BFXDCINbp8ZuUGl/mrHjMfhCg+b1YX+hVLAA5fGW7Pc= | ||
github.com/google/docsy v0.6.0/go.mod h1:VKKLqD8PQ7AglJc98yBorATfW7GrNVsn0kGXVYF6G+M= | ||
github.com/google/docsy/dependencies v0.6.0/go.mod h1:EDGc2znMbGUw0RW5kWwy2oGgLt0iVXBmoq4UOqstuNE= | ||
github.com/google/docsy/dependencies v0.7.1 h1:NbzYKJYMin2q50xdWSUzR2c9gCp7zR/XHDBcxklEcTQ= | ||
github.com/google/docsy/dependencies v0.7.1/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4= | ||
github.com/keptn/community v0.0.0-20230906052955-7eb1261c06ac h1:ewU/L6PZuoR1T292iLpc39Nf9SOXWk839UfbJ6KDmb4= | ||
github.com/keptn/community v0.0.0-20230906052955-7eb1261c06ac/go.mod h1:0G5nUhSv7ch9BgIFXiY7+U+cV5SbVmneysNGQwQkH8s= | ||
github.com/keptn/docs-tooling v0.1.5 h1:D/w9GFxRMqIhTznwOvb6GA+qOw4XkuXEvyrDzOz55lc= | ||
github.com/keptn/docs-tooling v0.1.5/go.mod h1:x0iT5YsJosz6wzjQke/YaLgiXF6PV+N8QzxSAc2MY/4= | ||
github.com/keptn/community v0.0.0-20231107002325-fe4aeafde163 h1:/RWNyrdx1GxOG15AMgjjjaQliRr9tRhFmPLMfCGUGQE= | ||
github.com/keptn/community v0.0.0-20231107002325-fe4aeafde163/go.mod h1:0G5nUhSv7ch9BgIFXiY7+U+cV5SbVmneysNGQwQkH8s= | ||
github.com/twbs/bootstrap v4.6.2+incompatible h1:TDa+R51BTiy1wEHSYjmqDb8LxNl/zaEjAOpRE9Hwh/o= | ||
github.com/twbs/bootstrap v4.6.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= | ||
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= |
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 @@ | ||
{{- if or (strings.HasPrefix .Destination "http") (strings.HasPrefix .Destination "#") -}} | ||
<a href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a> | ||
{{- else -}} | ||
{{- $link := . -}} | ||
{{- $internal := urls.Parse .Destination -}} | ||
{{- if $internal.Path -}} | ||
{{- $fragment := "" }} | ||
{{- with $internal.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}} | ||
{{- with .Page.GetPage $internal.Path }}{{ $internal = printf "%s%s" .RelPermalink $fragment }} | ||
<a href="{{ $internal }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ $link.Text | safeHTML }}</a> | ||
{{- end -}} | ||
{{- end -}} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} | ||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | ||
xmlns:xhtml="http://www.w3.org/1999/xhtml"> | ||
{{ range .Data.Pages }} | ||
{{- if and (not (in .RelPermalink "docs-v")) (.Permalink) -}} | ||
<url> | ||
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }} | ||
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }} | ||
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }} | ||
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }} | ||
<xhtml:link | ||
rel="alternate" | ||
hreflang="{{ .Language.Lang }}" | ||
href="{{ .Permalink }}" | ||
/>{{ end }} | ||
<xhtml:link | ||
rel="alternate" | ||
hreflang="{{ .Language.Lang }}" | ||
href="{{ .Permalink }}" | ||
/>{{ end }} | ||
</url> | ||
{{- end -}} | ||
{{ end }} | ||
</urlset> |
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 @@ | ||
|
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,24 @@ | ||
|
||
{{ if in .RelPermalink "docs-v" -}} | ||
{{ $canonical := replaceRE "-v[^/]+/" "/" .RelPermalink -}} | ||
{{ $canonicalPath := substr $canonical 0 -1 -}} | ||
{{ if .GetPage $canonicalPath -}} | ||
<link rel="canonical" href="{{ $canonical | absURL}}"/> | ||
{{ else }} | ||
{{ range .Site.Pages -}} | ||
{{ if in .Aliases $canonical -}} | ||
<link rel="canonical" href="{{ .RelPermalink | absURL}}"/> | ||
{{- end }} | ||
{{- end}} | ||
{{- end}} | ||
{{ else if in .RelPermalink "/docs/" -}} | ||
<link rel="canonical" href="{{ .RelPermalink | absURL}}"/> | ||
{{- end}} | ||
<!-- Google tag (gtag.js) --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SJLS2F2J2B"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', 'G-SJLS2F2J2B'); | ||
</script> |
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,26 @@ | ||
|
||
<a data-proofer-ignore class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
{{ .Site.Params.version_menu }} | ||
</a> | ||
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> | ||
{{ range sort .Site.Pages ".File.ContentBaseName" "desc" -}} | ||
{{ if (findRE "docs" .File.ContentBaseName) -}} | ||
{{ $versionFile := printf "%s%s" .File.Dir "/version" -}} | ||
{{ if fileExists $versionFile -}} | ||
<a class="dropdown-item" href="{{ .RelPermalink }}"> | ||
{{readFile ( $versionFile )}} | ||
{{- if eq .File.ContentBaseName "docs" -}} | ||
(latest) | ||
{{- end -}} | ||
</a> | ||
{{ end -}} | ||
{{ end -}} | ||
{{ end -}} | ||
{{ $path := "" }} | ||
{{ if .Site.Params.version_menu_pagelinks }} | ||
{{ $path = .Page.RelPermalink }} | ||
{{ end }} | ||
{{ range .Site.Params.versions }} | ||
<a class="dropdown-item" href="{{ .url }}{{ $path }}">{{ .version }}</a> | ||
{{ end }} | ||
</div> |
Oops, something went wrong.