mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
site: remove front matter from generated md output
The front matter addition an experiment, but I think we should remove it for now. There's no clear reason to include it. Maybe if some sort of standard emerges for structuring front matter for agents, we could consider reintroducing it. But for now I'd remove it to keep things clean and simple. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
@@ -1,38 +1,5 @@
|
||||
---
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- range .Ancestors }}
|
||||
{{- if and (not .IsHome) .Permalink }}
|
||||
parent:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- break }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Ancestors }}
|
||||
breadcrumbs:
|
||||
{{- range .Ancestors.Reverse }}
|
||||
{{- if and (not .IsHome) .Permalink }}
|
||||
- title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- with .NextInSection }}
|
||||
next:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- with .PrevInSection }}
|
||||
prev:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) }}
|
||||
openapi_spec: {{ $specURL.String | absURL }}
|
||||
---
|
||||
{{- $specURL := urls.Parse (printf "/%s%s.yaml" .File.Dir .File.ContentBaseName) -}}
|
||||
# {{ .Title }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
|
||||
@@ -4,39 +4,7 @@
|
||||
{{- else }}
|
||||
{{- $data = index site.Data .Params.datafile }}
|
||||
{{- end -}}
|
||||
---
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- range .Ancestors }}
|
||||
{{- if and (not .IsHome) .Permalink }}
|
||||
parent:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- break }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Ancestors }}
|
||||
breadcrumbs:
|
||||
{{- range .Ancestors.Reverse }}
|
||||
{{- if and (not .IsHome) .Permalink }}
|
||||
- title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- with .NextInSection }}
|
||||
next:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- with .PrevInSection }}
|
||||
prev:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
---
|
||||
# {{ .Title }}
|
||||
|
||||
{{ with $data.short }}**Description:** {{ . }}{{ end }}
|
||||
|
||||
|
||||
@@ -1,36 +1,3 @@
|
||||
---
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- range .Ancestors }}
|
||||
{{- if and (not .IsHome) .Permalink }}
|
||||
parent:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- break }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Ancestors }}
|
||||
breadcrumbs:
|
||||
{{- range .Ancestors.Reverse }}
|
||||
{{- if and (not .IsHome) .Permalink }}
|
||||
- title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- $children := where .Pages "Permalink" "ne" "" }}
|
||||
{{- if $children }}
|
||||
children:
|
||||
{{- range $children }}
|
||||
- title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- with .Description }}
|
||||
description: {{ . }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
---
|
||||
# {{ .Title }}
|
||||
|
||||
{{ .RenderShortcodes }}
|
||||
|
||||
@@ -1,35 +1,3 @@
|
||||
---
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- range .Ancestors }}
|
||||
{{- if and (not .IsHome) .Permalink }}
|
||||
parent:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- break }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if .Ancestors }}
|
||||
breadcrumbs:
|
||||
{{- range .Ancestors.Reverse }}
|
||||
{{- if and (not .IsHome) .Permalink }}
|
||||
- title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
- title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- with .NextInSection }}
|
||||
next:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
{{- with .PrevInSection }}
|
||||
prev:
|
||||
title: {{ .Title }}
|
||||
url: {{ .Permalink }}
|
||||
{{- end }}
|
||||
---
|
||||
# {{ .Title }}
|
||||
|
||||
{{ .RenderShortcodes }}
|
||||
|
||||
Reference in New Issue
Block a user