Skip to content

Commit ecb30d2

Browse files
committed
new: finish all the organization
Signed-off-by: Lorenzo Fontana <[email protected]>
1 parent 7d11c02 commit ecb30d2

File tree

20 files changed

+101
-20
lines changed

20 files changed

+101
-20
lines changed

Diff for: config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ menu:
2626
weight: 900
2727
- identifier: networking
2828
weight: 1000
29+
- identifier: security
30+
weight: 1100
File renamed without changes.

Diff for: content/999-exercise-example.md renamed to content/999999-exercise-example.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "exercise example"
3-
weight: 999
3+
weight: 999999
44
class: extra-details
55
---
66

Diff for: content/bcc/intro.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "bcc"
3+
weight: 400
4+
class: title
5+
navTitle: "BCC"
6+
---
7+
{{< nav >}}
8+

Diff for: content/bpf-vm/index.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "bpf-vm"
3+
weight: 300
4+
class: title
5+
navTitle: "The BPF in Kernel Virtual Machine"
6+
---
7+
{{< nav >}}
8+

Diff for: content/bpftrace/500-bpftrace.md

-9
This file was deleted.

Diff for: content/bpftrace/501-bpftrace.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
21
---
3-
title: "bpftrace"
2+
title: "bpftrace-intro"
43
weight: 501
54
---
65

Diff for: content/bpftrace/503-bpftrace-syntax.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
---
32
title: "bpftrace-syntax"
43
weight: 503

Diff for: content/bpftrace/517-bpftrace-functions.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
---
32
title: "bpftrace-actions"
43
weight: 516

Diff for: content/bpftrace/index.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "bpftrace"
3+
weight: 500
4+
class: title
5+
navTitle: "bpftrace"
6+
---
7+
{{< nav >}}
8+

Diff for: content/clang/intro.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "clang"
3+
weight: 800
4+
class: title
5+
navTitle: "Clang BPF backend"
6+
---
7+
{{< nav >}}
8+

Diff for: content/gobpf/intro.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "gobpf"
3+
weight: 600
4+
class: title
5+
navTitle: "gobpf"
6+
---
7+
{{< nav >}}
8+

Diff for: content/introduction/100-introduction.md renamed to content/introduction/101-introduction.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "introduction"
3-
weight: 100
3+
weight: 101
44
---
55
# Introduction
66

Diff for: content/introduction/intro.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "introduction"
3+
weight: 100
4+
class: title
5+
navTitle: "Introduction"
6+
---
7+
{{< nav >}}
8+

Diff for: content/kubernetes/intro.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "kubernetes"
3+
weight: 700
4+
class: title
5+
navTitle: "eBPF and Kubernetes"
6+
---
7+
{{< nav >}}
8+

Diff for: content/networking/intro.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "networking"
3+
weight: 1000
4+
class: title
5+
navTitle: "eBPF and Linux Networking"
6+
---
7+
{{< nav >}}
8+

Diff for: content/program-types/intro.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "program-types"
3+
weight: 200
4+
class: title
5+
navTitle: "eBPF Program types"
6+
---
7+
{{< nav >}}
8+

Diff for: content/security/intro.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "security"
3+
weight: 1100
4+
class: title
5+
navTitle: "Linux Kernel security and eBPF"
6+
---
7+
{{< nav >}}
8+

Diff for: content/tools/intro.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "tools"
3+
weight: 900
4+
class: title
5+
navTitle: "Any other tool?"
6+
---
7+
{{< nav >}}
8+

Diff for: themes/workshop/layouts/shortcodes/nav.html

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
{{ .Page.Title }}
2-
3-
{{ if not .Page.Params.sectionIdentifier }}
1+
{{ if .Page.Params.navTitle }}
2+
{{ .Page.Params.navTitle }}
3+
{{ else }}
4+
.red[No title provided, use `navTitle` in your page]
5+
{{ end }}
6+
{{ if not .Page.Title }}
47
.red[error rendering the nav menu], add
58

69
```
7-
sectionIdentifier: "your-id"
10+
title: "your-id"
811
```
912
To the page.
1013
It should match what you did put in the menu in the config file!
1114

1215
{{ end }}
1316

1417

15-
{{ $currentPage := .Page.Params.sectionIdentifier }}
18+
{{ $currentPage := .Page.Title }}
1619
{{ $previous := "" }}
1720
{{ $next := "" }}
1821

0 commit comments

Comments
 (0)