generate md versions of all pages
parent
a30345170c
commit
3d63ff5d55
|
|
@ -55,6 +55,26 @@ outputFormats:
|
|||
mediaType: application/json
|
||||
baseName: pages
|
||||
isPlainText: true
|
||||
markdown:
|
||||
mediaType: text/markdown
|
||||
baseName: index
|
||||
isPlainText: true
|
||||
notAlternative: false
|
||||
permalinkable: true
|
||||
suffixes:
|
||||
- md
|
||||
rel: alternate
|
||||
|
||||
outputs:
|
||||
page:
|
||||
- HTML
|
||||
- markdown
|
||||
section:
|
||||
- HTML
|
||||
- markdown
|
||||
home:
|
||||
- HTML
|
||||
- markdown
|
||||
|
||||
# Asset processing configuration for development
|
||||
build:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
title: {{ .Title }}
|
||||
description: {{ .Description }}
|
||||
url: {{ .Permalink }}
|
||||
date: {{ .Date.Format "2006-01-02" }}
|
||||
lastmod: {{ .Lastmod.Format "2006-01-02" }}
|
||||
---
|
||||
|
||||
# {{ .Title }}
|
||||
|
||||
{{ with .Description }}{{ . }}
|
||||
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
|
||||
## Pages in this section
|
||||
|
||||
{{ range .Pages }}
|
||||
- [{{ .Title }}]({{ .RelPermalink }}){{ with .Description }} - {{ . }}{{ end }}
|
||||
{{ end }}
|
||||
|
||||
---
|
||||
*Source: {{ .Permalink }}*
|
||||
*Last updated: {{ .Lastmod.Format "2006-01-02" }}*
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
title: {{ .Title }}
|
||||
description: {{ .Description }}
|
||||
url: {{ .Permalink }}
|
||||
date: {{ .Date.Format "2006-01-02" }}
|
||||
lastmod: {{ .Lastmod.Format "2006-01-02" }}
|
||||
{{- with .Params.tags }}
|
||||
tags:{{ range . }}
|
||||
- {{ . }}{{ end }}
|
||||
{{- end }}
|
||||
---
|
||||
|
||||
# {{ .Title }}
|
||||
|
||||
{{ with .Description }}{{ . }}
|
||||
|
||||
{{ end }}
|
||||
{{ .Content }}
|
||||
|
||||
---
|
||||
*Source: {{ .Permalink }}*
|
||||
*Last updated: {{ .Lastmod.Format "2006-01-02" }}*
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
title: {{ .Site.Title }}
|
||||
description: {{ .Site.Params.description | default "InfluxData Documentation" }}
|
||||
url: {{ .Permalink }}
|
||||
date: {{ now.Format "2006-01-02" }}
|
||||
---
|
||||
|
||||
# {{ .Site.Title }}
|
||||
|
||||
{{ .Site.Params.description | default "Welcome to the InfluxData Documentation" }}
|
||||
|
||||
## Documentation Sections
|
||||
|
||||
{{ range .Site.Sections }}
|
||||
### [{{ .Title }}]({{ .RelPermalink }})
|
||||
{{ .Description }}
|
||||
{{ end }}
|
||||
|
||||
---
|
||||
*Generated: {{ now.Format "2006-01-02" }}*
|
||||
Loading…
Reference in New Issue