Skip to content

Commit

Permalink
fix list of plugins + rules files versions + width of pageinfo and ta…
Browse files Browse the repository at this point in the history
…bles

Signed-off-by: Thomas Labarussias <issif+github@gadz.org>
  • Loading branch information
Issif authored and poiana committed Dec 6, 2024
1 parent 480cc5b commit 843f39e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion assets/scss/_pageinfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
width: 100%;

@include media-breakpoint-up(xl) {
max-width: 80% !important;
max-width: 100% !important;
}

@each $color, $value in $theme-colors {
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}

@include media-breakpoint-up(xl) {
width: 80%;
width: 100%;
}

&--sm {
Expand Down
7 changes: 5 additions & 2 deletions config/_default/versions/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ archived_version: false

version: v0.39.2

# The version of the default rules set
# The version of the default rules sets
# Keep it aligned with the version of Falco for compatibility
rulesversion: 3.0.0
rulesStableVersion: 3.2.0
rulesIncubatingVersion: 4.0.1
rulesSandboxVersion: 4.0.1
rulesDeprecatedVersion: 3.0.0

# The archived versions of the docs available for reference.
# Used in the Releases menu, as well as in the Available Documentation Versions
Expand Down
14 changes: 11 additions & 3 deletions layouts/shortcodes/plugins.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- $regitry_url := (.Get 0) -}}
{{- $regitry_url := printf "%s?v=%d" (.Get 0) now.Unix -}}
{{- $dataYAML := resources.GetRemote $regitry_url -}}
{{- $content := $dataYAML.Content | replaceRE `#.*\n` "" | transform.Unmarshal }}

Expand All @@ -10,7 +10,7 @@
color: #fff;
padding: 4px 5px;
border-radius: 5px;
}
}
</style>

<div class="table">
Expand All @@ -27,8 +27,15 @@
<th scope="col">Licence</th>
</thead>
{{- range $content.plugins }}
{{ if and (ne .capabilities.sourcing.id 999) (ne .name "plugin-id-zero-value") }}
<tr>
<td> {{ if .capabilities.sourcing.id }} {{ .capabilities.sourcing.id }} {{ end }} </td>
<td>
{{ if .capabilities.sourcing.id }}
{{ .capabilities.sourcing.id }}
{{ else }}
-
{{ end }}
</td>
<td> <b>{{ .name }}</b> </td>
<td> {{ if eq .capabilities.sourcing.supported true }} sourcing {{ else }} extraction {{ end }} </td>
<td> {{ if .capabilities.sourcing.source }} <span class="source"> {{ .capabilities.sourcing.source }} {{ end }} </span> </td>
Expand All @@ -38,6 +45,7 @@
<td> {{ if .rules_url }} <a href="{{ .rules_url }}">{{ emojify ":link:" }} {{ end }} </td>
<td> {{ .license }} </td>
</tr>
{{ end }}
{{- end -}}
</table>
</div>
Expand Down
8 changes: 4 additions & 4 deletions layouts/shortcodes/rules_list.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $stableURL := printf "https://raw.githubusercontent.com/falcosecurity/rules/falco-rules-%s/rules/falco_rules.yaml" .Site.Params.rulesversion -}}
{{- $sandboxURL := printf "https://raw.githubusercontent.com/falcosecurity/rules/falco-rules-%s/rules/falco-sandbox_rules.yaml" .Site.Params.rulesversion -}}
{{- $incubatingURL := printf "https://raw.githubusercontent.com/falcosecurity/rules/falco-rules-%s/rules/falco-incubating_rules.yaml" .Site.Params.rulesversion -}}
{{- $deprecatedURL := printf "https://raw.githubusercontent.com/falcosecurity/rules/falco-rules-%s/rules/falco-deprecated_rules.yaml" .Site.Params.rulesversion -}}
{{- $stableURL := printf "https://raw.githubusercontent.com/falcosecurity/rules/falco-rules-%s/rules/falco_rules.yaml" .Site.Params.rulesStableVersion -}}
{{- $sandboxURL := printf "https://raw.githubusercontent.com/falcosecurity/rules/falco-sandbox-rules-%s/rules/falco-sandbox_rules.yaml" .Site.Params.rulesSandboxVersion -}}
{{- $incubatingURL := printf "https://raw.githubusercontent.com/falcosecurity/rules/falco-incubating-rules-%s/rules/falco-incubating_rules.yaml" .Site.Params.rulesIncubatingVersion -}}
{{- $deprecatedURL := printf "https://raw.githubusercontent.com/falcosecurity/rules/falco-deprecated-rules-%s/rules/falco-deprecated_rules.yaml" .Site.Params.rulesDeprecatedVersion -}}

{{- $maturities := (dict "deprecated" $deprecatedURL "incubating" $incubatingURL "sandbox" $sandboxURL "stable" $stableURL) }}

Expand Down

0 comments on commit 843f39e

Please sign in to comment.