Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use template for the website.yaml #175

Merged
merged 1 commit into from
Nov 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
use template for the website.yaml
  • Loading branch information
swilen-iwanow committed Nov 24, 2020
commit 2873c9f185b06fa227d4c5efb4586b4191decbde
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: ~