Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 2 additions & 15 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,6 @@ outputFormats:
isPlainText: true
mediaType: "application/json"
notAlternative: true
# robots.txt, see: layouts/index.robots.json
robots:
baseName: robots
isPlainText: true
mediaType: "text/plain"
notAlternative: true
# Markdown for LLMs, see layouts/_default/single.markdown.md
Markdown:
baseName: index
mediaType: "text/markdown"
isPlainText: true
isHTML: false
permalinkable: false
# llms.txt
llms:
baseName: llms
Expand All @@ -101,10 +88,10 @@ outputs:
- llms
page:
- html
- Markdown
- markdown
section:
- html
- Markdown
- markdown

languages:
en:
Expand Down
16 changes: 12 additions & 4 deletions layouts/_default/index.llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@
{{- $grouped := $sorted.GroupBy "Section" -}}

# Docker Documentation
{{- range $grouped }}

{{ range $grouped }}
## {{ humanize .Key }}
{{ range .Pages }}
- [{{ .Title }}]({{ .Permalink }}){{ end }}
{{ end -}}
{{- range .Pages }}
{{- template "pageItem" . }}
{{- end }}
{{- end -}}

{{- define "pageItem" }}
{{- if and .Title .Permalink }}
- [{{ .Title }}]({{ .Permalink }})
{{- with .Description }}: {{ chomp (replace . "\n" " ") }}{{- end }}
{{- end }}
{{- end }}
12 changes: 5 additions & 7 deletions layouts/_default/list.markdown.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{{ .Title }}

{{ .RawContent }}

{{ range .Pages }}
- [{{ .Title }}](https://docs.docker.com{{ .RelPermalink }})
{{ end }}
# {{ .Title }}
{{ .RenderShortcodes }}
{{ range where .Pages "Permalink" "ne" "" }}
- [{{ .Title }}]({{ .Permalink }})
{{ end }}
5 changes: 2 additions & 3 deletions layouts/_default/single.markdown.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
{{ .Title }}

{{ .RawContent }}
# {{ .Title }}
{{ .RenderShortcodes }}