generate md versions of all pages

test-llm-md
Scott Anderson 2025-11-07 13:26:45 -07:00
parent a30345170c
commit 3d63ff5d55
4 changed files with 86 additions and 0 deletions

View File

@ -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:

24
layouts/_default/list.md Normal file
View File

@ -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" }}*

View File

@ -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" }}*

20
layouts/index.md Normal file
View File

@ -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" }}*