Skip to content

Commit

Permalink
fix: trimspace
Browse files Browse the repository at this point in the history
  • Loading branch information
davlgd committed Jan 6, 2025
1 parent e50aff8 commit e5975e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion layouts/hextra-home.llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{{- if .Params.llmsTxtOptional }}
{{- $pages := sort .Pages "Title" "asc" }}
{{- range $pages }}
- [{{ .Title }}]({{ .RelPermalink }}index.html.md){{ with .Description }}: {{ . }}{{ end }}
- [{{ .Title }}](https://www.clever-cloud.com{{ .RelPermalink }}index.html.md){{ with .Description }}: {{ . }}{{ end }}
{{- end }}
{{- end }}
{{- range .Sections }}
Expand Down
5 changes: 2 additions & 3 deletions layouts/partials/markdown/include_runtimes_versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@

{{- range $runtimeFound := findRE $runtimesPattern $content -}}

Check failure on line 4 in layouts/partials/markdown/include_runtimes_versions.md

View workflow job for this annotation

GitHub Actions / vale

[vale] layouts/partials/markdown/include_runtimes_versions.md#L4

[Vale.Spelling] Did you really mean 'runtimeFound'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'runtimeFound'?", "location": {"path": "layouts/partials/markdown/include_runtimes_versions.md", "range": {"start": {"line": 4, "column": 12}}}, "severity": "ERROR"}
{{- $runtime := replaceRE $runtimesPattern "$1" $runtimeFound -}}
{{- $runtime := lower (strings.TrimSpace $runtime) -}}
{{- $versions := index site.Data.runtime_versions $runtime -}}
{{- $runtime = trim $runtime " " -}}
{{- $output := "" -}}

{{- $versions := index site.Data.runtime_versions $runtime -}}

Check failure on line 8 in layouts/partials/markdown/include_runtimes_versions.md

View workflow job for this annotation

GitHub Actions / vale

[vale] layouts/partials/markdown/include_runtimes_versions.md#L8

[Google.Spacing] 'e.D' should have one space.
Raw output
{"message": "[Google.Spacing] 'e.D' should have one space.", "location": {"path": "layouts/partials/markdown/include_runtimes_versions.md", "range": {"start": {"line": 8, "column": 31}}}, "severity": "ERROR"}
{{- with $versions -}}
{{- if .default -}}
{{- $output = printf "%s### Default version\n" $output -}}

Check failure on line 11 in layouts/partials/markdown/include_runtimes_versions.md

View workflow job for this annotation

GitHub Actions / vale

[vale] layouts/partials/markdown/include_runtimes_versions.md#L11

[Vale.Spelling] Did you really mean 'printf'?
Raw output
{"message": "[Vale.Spelling] Did you really mean 'printf'?", "location": {"path": "layouts/partials/markdown/include_runtimes_versions.md", "range": {"start": {"line": 11, "column": 27}}}, "severity": "ERROR"}
Expand Down

0 comments on commit e5975e1

Please sign in to comment.