Skip to content

Commit

Permalink
Merge pull request #175 from gardener/template
Browse files Browse the repository at this point in the history
use template for the website.yaml
  • Loading branch information
swilen-iwanow authored Nov 24, 2020
2 parents 48abce7 + 2873c9f commit aa5c4d9
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .docforge/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,30 @@ structure:
title: Community
url: /community
type: landingpage
{{- $latest := "" }}
{{- $vers := Split .versions "," -}}
{{- range $vers -}}
{{- if eq $latest "" -}}
{{- $latest = . }}
- name: documentation
nodesSelector:
path: https://github.com/gardener/documentation/blob/master/.docforge/documentation.yaml
- name: v1.10.0
{{- else }}
- name: {{.}}
nodesSelector:
path: https://github.com/gardener/documentation/blob/master/.docforge/documentation.yaml
links:
rewrites:
gardener/documentation/(tree|blob|raw):
version: v1.10.0
version: {{.}}
gardener/gardener/(tree|blob|raw):
version: v1.10.0
- name: v1.11.0
nodesSelector:
path: https://github.com/gardener/documentation/blob/master/.docforge/documentation.yaml
links:
rewrites:
gardener/documentation/(tree|blob|raw):
version: v1.11.0
gardener/gardener/(tree|blob|raw):
version: v1.11.0
version: {{.}}
{{- end -}}
{{- end }}
links:
rewrites:
gardener/gardener:
version: v1.12.2
version: {{ $latest }}
downloads:
scope:
gardener/documentation/(blob|raw)/(.*)/website: ~
gardener/documentation/(blob|raw)/(.*)/website: ~

0 comments on commit aa5c4d9

Please sign in to comment.