-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ partial "markdown/include_entrypoint.md" .RawContent | htmlUnescape }} | ||
Check failure on line 1 in layouts/_default/list.md GitHub Actions / vale[vale] layouts/_default/list.md#L1
Raw output
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ partial "markdown/include_entrypoint.md" .RawContent | htmlUnescape }} | ||
Check failure on line 1 in layouts/_default/single.md GitHub Actions / vale[vale] layouts/_default/single.md#L1
Raw output
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{- $content := . -}} | ||
{{- $content = partial "markdown/include_shortcode_content.md" $content -}} | ||
{{- $content = partial "markdown/include_runtimes_versions.md" $content -}} | ||
{{- $content = partial "markdown/include_software_versions_shared_dedicated.md" $content -}} | ||
{{ $content }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{{- $content := . -}} | ||
{{- $runtimesPattern := "\\{\\{<\\s*runtimes_versions\\s+([^>]+)\\s*>\\}\\}" -}} | ||
|
||
{{- range $runtimeFound := findRE $runtimesPattern $content -}} | ||
Check failure on line 4 in layouts/partials/markdown/include_runtimes_versions.md GitHub Actions / vale[vale] layouts/partials/markdown/include_runtimes_versions.md#L4
Raw output
|
||
{{- $runtime := replaceRE $runtimesPattern "$1" $runtimeFound -}} | ||
{{- $runtime = trim $runtime " " -}} | ||
{{- $versions := index site.Data.runtime_versions $runtime -}} | ||
Check failure on line 7 in layouts/partials/markdown/include_runtimes_versions.md GitHub Actions / vale[vale] layouts/partials/markdown/include_runtimes_versions.md#L7
Raw output
|
||
{{- $output := "" -}} | ||
{{- with $versions -}} | ||
{{- if .default -}} | ||
{{- $output = printf "%s### Default version\n" $output -}} | ||
Check failure on line 11 in layouts/partials/markdown/include_runtimes_versions.md GitHub Actions / vale[vale] layouts/partials/markdown/include_runtimes_versions.md#L11
Raw output
|
||
{{- range .default -}} | ||
{{- $output = printf "%s- %s\n" $output . -}} | ||
Check failure on line 13 in layouts/partials/markdown/include_runtimes_versions.md GitHub Actions / vale[vale] layouts/partials/markdown/include_runtimes_versions.md#L13
Raw output
|
||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- if .accepted -}} | ||
{{- $output = printf "%s\n### Accepted version(s)\n" $output -}} | ||
{{- range .accepted -}} | ||
{{- $output = printf "%s- %s\n" $output . -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- if .eol_source -}} | ||
{{- $output = printf "%s\nCheck the [end-of-life (EOL)](%s) status of these versions." $output .eol_source -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- $content = replace $content $runtimeFound $output -}} | ||
Check failure on line 29 in layouts/partials/markdown/include_runtimes_versions.md GitHub Actions / vale[vale] layouts/partials/markdown/include_runtimes_versions.md#L29
Raw output
|
||
{{- end -}} | ||
|
||
{{- return $content -}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- $content := . -}} | ||
{{- $patternSearch := "\\{\\{%\\s*content/([^%}]+)\\s*%\\}\\}" -}} | ||
Check failure on line 2 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L2
Raw output
|
||
{{- $patternClean := "\\{\\{%\\s*content/(.+?)\\s*%\\}\\}" -}} | ||
Check failure on line 3 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L3
Raw output
|
||
|
||
{{- range $shortcodeFound := findRE $patternSearch $content -}} | ||
Check failure on line 5 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L5
Raw output
|
||
{{- $name := replaceRE $patternClean "$1" $shortcodeFound -}} | ||
Check failure on line 6 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L6
Raw output
|
||
{{- $filepath := printf "layouts/shortcodes/content/%s.md" $name -}} | ||
Check failure on line 7 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L7
Raw output
Check warning on line 7 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L7
Raw output
Check failure on line 7 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L7
Raw output
|
||
{{- with os.ReadFile $filepath -}} | ||
Check failure on line 8 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L8
Raw output
Check failure on line 8 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L8
Raw output
Check warning on line 8 in layouts/partials/markdown/include_shortcode_content.md GitHub Actions / vale[vale] layouts/partials/markdown/include_shortcode_content.md#L8
Raw output
|
||
{{- $content = replace $content $shortcodeFound . -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- return $content -}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- $content := . -}} | ||
{{- $versionsPattern := "\\{\\{<\\s*software_versions_shared_dedicated\\s+([^>]+)\\s*>\\}\\}" -}} | ||
Check failure on line 2 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L2
Raw output
|
||
|
||
{{- range $versionFound := findRE $versionsPattern $content -}} | ||
Check failure on line 4 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L4
Raw output
Check failure on line 4 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L4
Raw output
|
||
{{- $dbname := replaceRE $versionsPattern "$1" $versionFound -}} | ||
Check failure on line 5 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L5
Raw output
Check failure on line 5 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L5
Raw output
|
||
{{- $versions := index site.Data.software_versions_shared_dedicated $dbname -}} | ||
Check failure on line 6 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L6
Raw output
Check failure on line 6 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L6
Raw output
|
||
{{- $output := "### Regular versions\n" -}} | ||
{{- with $versions.dedicated -}} | ||
{{- range . -}} | ||
{{- $output = printf "%s- %s\n" $output . -}} | ||
Check failure on line 10 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L10
Raw output
|
||
{{- end -}} | ||
{{- end -}} | ||
{{- if $versions.dev -}} | ||
{{- $output = printf "%s\n### DEV plan\n" $output -}} | ||
Check failure on line 14 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L14
Raw output
Check notice on line 14 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L14
Raw output
|
||
{{- range $versions.dev -}} | ||
{{- $output = printf "%s- %s\n" $output . -}} | ||
Check failure on line 16 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L16
Raw output
|
||
{{- end -}} | ||
{{- $output = printf "%s\n%s" $output site.Data.software_versions_shared_dedicated.dev_message -}} | ||
Check failure on line 18 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L18
Raw output
Check failure on line 18 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L18
Raw output
|
||
{{- end -}} | ||
{{- $content = replace $content $versionFound $output -}} | ||
Check failure on line 20 in layouts/partials/markdown/include_software_versions_shared_dedicated.md GitHub Actions / vale[vale] layouts/partials/markdown/include_software_versions_shared_dedicated.md#L20
Raw output
|
||
{{- end -}} | ||
|
||
{{- return $content -}} |