Skip to content

Commit

Permalink
feat: add description field to contributors
Browse files Browse the repository at this point in the history
Signed-off-by: Bulat Safiullin <bulat.safiullin@akvelon.com>
  • Loading branch information
bullet03 authored and poiana committed Apr 3, 2023
1 parent 3f44455 commit 8a13ba0
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 33 deletions.
27 changes: 16 additions & 11 deletions ADD_CONTRIBUTOR.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# How to add new contributor
Please follow these steps to add new contributor to [contributors page](https://falco.org//community/contributors/#the-latest-contributors):
Please follow these steps to add new contributor to [contributors page](https://falco.org//community/contributors/):
1. Fork [Falco](https://github.com/falcosecurity/falco-website) repository
2. Add new contributor image to
the [static/img/community/contributors](https://github.com/falcosecurity/falco-website/blob/master/static/img/community/contributors)
Expand All @@ -8,23 +8,28 @@ Please follow these steps to add new contributor to [contributors page](https://
```
- date: January and February, 2022
names:
- Alban Créquy
links:
- https://github.com/alban
- Name FamilyName
links:
- https://github.com/name
images:
- /img/community/contributors/melissa_kilby.svg
- /img/community/contributors/name.svg
descriptions:
- Couple of sentences about the contribution
```
4. If you need to add more than one contributor use template below
```
- date: February, 2023
names:
- Melissa Kilby
- David Windsor
- Name FamilyName1
- Name FamilyName2
links:
- https://github.com/incertum
- https://github.com/dwindsor
- https://github.com/name1
- https://github.com/name2
images:
- /img/community/contributors/melissa_kilby.svg
- /img/community/contributors/contributor_m.svg
- /img/community/contributors/name1.svg
- /img/community/contributors/name2.svg
descriptions:
- Couple of sentences about the contribution
- Couple of sentences about the contribution
```
5. Create pull request to the Falco repository with your changes
5 changes: 5 additions & 0 deletions data/contributors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@
images:
- /img/community/contributors/melissa_kilby.svg
- /img/community/contributors/contributor_m.svg
descriptions:
- Melissa added the ability to filter process ancestry by exepath, which is useful for creating rules around shells or RCE originating from Java processes, providing new opportunities to write filter expressions for many use cases, and added aexepath and aexe filters and a display option, while also changing the ordering of proc.x fields in a follow-up PR.
- David has been performing exceptionally well as a driverkit maintainer and on libs, tirelessly adding new modern BPF syscalls; furthermore, he has recently added new features such as getresgid, getresuid, and nanosleep to modern_probe in the libs repository.
- date: January, 2023
names:
- Logan Bond
links:
- https://github.com/EXONER4TED
descriptions:
- Logan updated the Dockerfile to be in the root of the repo, removed the shell script wrapper, added linting and testing checks to the CI pipeline, and updated the container to run as a non-root user.
- date: January and February, 2022
names:
- Alban Créquy
Expand Down
49 changes: 27 additions & 22 deletions layouts/partials/contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,45 @@
<div class="card-body">
<div class="card-text h-100 w-100">
{{ if eq $i 0 }}
<div>
<h4 class="text-primary" id="contributor-date">{{ $contributor.date }}</h4>
<div class="d-flex align-items-center flex-column flex-md-row">
<div class="d-flex flex-column flex-xl-row py-2 px-3">
<h4 class="contributor-date text-primary">{{ $contributor.date }}</h4>
<div class="grid-1 grid-lg-{{ len $contributor.links }} gap-3">
{{$links := $contributor.links }}
{{$names := $contributor.names }}
{{$images := $contributor.images }}
{{$descriptions := $contributor.descriptions }}
{{ range $index, $link := $links }}
<div class="contributor-date mt-3 mt-md-0">
<div class="d-flex flex-column mt-3 mt-md-0">
{{ with $contributor.images }}
<img src="{{ index $images $index }}" alt="{{ index $names $index }}">
<img width="80px" src="{{ index $images $index }}" alt="{{ index $names $index }}">
{{ end }}
<a href="{{ $link }}" class="text-dark font-weight-bold mt-3">{{ index $names $index }}</a>
{{ with $contributor.descriptions }}
<div class="mt-3">{{ index $descriptions $index }}</div>
{{ end }}
<a href="{{ $link }}" class="text-dark font-weight-bold pl-3">{{ index $names $index }}</a>
</div>
{{ end }}
</div>
</div>
{{ else }}
<div class="d-flex flex-column flex-xl-row py-2 px-3">
<div class="contributor-date text-dark">
<span class="pr-5">{{ $contributor.date }}</span>
<div class="d-flex align-items-baseline flex-column flex-xl-row py-2 px-3">
<div class="contributor-date text-dark">
<span class="pr-5">{{ $contributor.date }}</span>
</div>
<div class="grid-1 grid-lg-{{ len $contributor.links }} gap-3">
{{$links := $contributor.links }}
{{$names := $contributor.names }}
{{ range $index, $link := $links }}
{{$descriptions := $contributor.descriptions }}
<div class="d-flex flex-column gap-3 mt-3 mt-md-0">
<a href="{{ $link }}" class="text-dark font-weight-bold mt-3">{{ index $names $index }}</a>
{{ with $contributor.descriptions }}
<div>{{ index $descriptions $index }}</div>
{{ end }}
</div>
{{ end }}
</div>
</div>
<p>
{{$links := $contributor.links }}
{{$names := $contributor.names }}
{{ range $index, $link := $links }}
{{ if ne $index (sub (len $links) 1) }}
<a href="{{ $link }}" class="text-dark font-weight-bold">{{ index $names $index }} </a>
<span class="text-dark font-weight-bold">and </span>
{{ else }}
<a href="{{ $link }}" class="text-dark font-weight-bold">{{ index $names $index }}</a>
{{ end }}
{{ end }}
</p>
</div>
{{ end }}
</div>
</div>
Expand Down

0 comments on commit 8a13ba0

Please sign in to comment.