Skip to content

Commit 88dc775

Browse files
authored
Merge pull request #361 from fluxcd/fix-update-kubecon
Fix update kubecon
2 parents 92e16b0 + 3e5fca7 commit 88dc775

File tree

2 files changed

+44
-20
lines changed

2 files changed

+44
-20
lines changed

KUBECON.md

+13-10
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
# KubeCon activities!
44

55

6-
{{< figure src="/img/flux-horizontal-color.png" alt="Flux Logo" class="flux-logo-inner-header-left" >}}
6+
<div class="clearfix">
7+
<div class="flux-logo-inner-header-left">
8+
{{< figure src="/img/flux-horizontal-color.png" alt="Flux Logo" >}}
9+
</div>
710

8-
# KubeCon Paris 2024
11+
<div class="float-header-kubecon"><h1>KubeCon Paris 2024</h1><p>March 19-22, 2024</p></div>
912

10-
March 19-22, 2024
1113

12-
13-
{{< figure src="/img/blob-waving.gif" alt="Blob Waving" class="inner-header-right-align" >}}
14+
<div class="inner-header-right-align">
15+
{{< figure src="/img/blob-waving.gif" alt="Blob Waving" >}}
16+
</div></div>
1417

1518
# Flux news!
1619

@@ -19,13 +22,13 @@ March 19-22, 2024
1922
[Second Security audit: No CVEs!](https://fluxcd.io/blog/2023/11/flux-security-audit/)
2023

2124

22-
{{< figure src="/img/flux-cuttlefish-stickers.jpeg" alt="Custom printed stickers with cuttlefish mascot and Flux logos" class="stickers-float-left" >}}
23-
24-
# Flux Booth fun!
25+
<div class="clearfix">
26+
<div class="stickers-float-left">
27+
{{< figure src="/img/flux-cuttlefish-stickers.jpeg" alt="Custom printed stickers with cuttlefish mascot and Flux logos" >}}
28+
</div>
2529

26-
Want a bespoke unique all-your-own cuttlefish sticker? Complete the challenge and pick up a human-intelligence or artificial-intelligence Flux sticker! Deploy [the podinfo sample app](https://github.com/stefanprodan/podinfo) and change the text to something like "Cuttlefish playing tennis" and then come by the Flux booth at KubeCon. 😸👩🏻‍🎨🎨
2730

28-
Visit the Flux booth in the KubeCon Project Pavilion to meet the Flux maintainers and contributors for demos and fun!
31+
<div class="float-booth-fun"><h1>Flux Booth fun!</h1><p>Want a bespoke unique all-your-own cuttlefish sticker? Complete the challenge and pick up a human-intelligence or artificial-intelligence Flux sticker! Deploy [the podinfo sample app](https://github.com/stefanprodan/podinfo) and change the text to something like "Cuttlefish playing tennis" and then come by the Flux booth at KubeCon. 😸👩🏻‍🎨🎨</p><p>Visit the Flux booth in the KubeCon Project Pavilion to meet the Flux maintainers and contributors for demos and fun!</p></div></div>
2932

3033
# Flux talks @ KubeCon Paris!
3134

script/update-kubecon.sh

+31-10
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
TEMP_FILE=kubecon.html
1111
OUT_FILE=KUBECON.md
1212

13+
sed=sed
14+
head=head
15+
16+
if [[ "$OSTYPE" == "darwin"* ]]; then
17+
sed=gsed
18+
head=ghead
19+
fi
20+
1321
if [[ -z "$DEBUG" ]]; then
1422
wget https://github.com/suntong/html2md/releases/download/${HTML2MD_VER}/${HTML2MD}.tar.gz -O ${HTML2MD}.tar.gz
1523
tar xvf ${HTML2MD}.tar.gz
@@ -21,17 +29,30 @@ fi
2129
# sed 2: make site top-link self-referential, it should point at /kubecon
2230
# sed 3: remove empty image alt ref with no significance (branding logo)
2331
# sed 4-6: detect the images from their alt tags, then replace with figure refs
32+
# sed 7: the header which is meant to float between images must also have float
33+
# sed 8: flux booth fun (a caption with a heading h1 followed by two paragraphs!)
2434
wget ${SOURCE_SITE} -O ${TEMP_FILE} \
25-
&& ${HTML2MD_BIN} -i ${TEMP_FILE} |sed '1,6d'|head -n -13 \
26-
| sed 's_# \[Copy heading link\](\\#h\.[a-z0-9]*)[[:space:]]*_# _' \
27-
| sed 's_/view/flux-kubecon-paris-2024/home_/kubecon_' \
28-
| sed -E 's_\[!\[\]\([^)]+\)_[_g' \
29-
| sed -E 's_!\[flux-logo-inner-header-left[^)]+\)_\
30-
{{< figure src="/img/flux-horizontal-color.png" alt="Flux Logo" class="flux-logo-inner-header-left" >}}_g' \
31-
| sed -E 's_!\[inner-header-right-align[^)]+\)_\
32-
{{< figure src="/img/blob-waving.gif" alt="Blob Waving" class="inner-header-right-align" >}}_g' \
33-
| sed -E 's_!\[stickers-float-left[^)]+\)_\
34-
{{< figure src="/img/flux-cuttlefish-stickers.jpeg" alt="Custom printed stickers with cuttlefish mascot and Flux logos" class="stickers-float-left" >}}_g' \
35+
&& ${HTML2MD_BIN} -i ${TEMP_FILE} |$sed '1,6d'|$head -n -13 \
36+
| $sed 's_# \[Copy heading link\](\\#h\.[a-z0-9]*)[[:space:]]*_# _' \
37+
| $sed 's_/view/flux-kubecon-paris-2024/home_/kubecon_' \
38+
| $sed -E 's_\[!\[\]\([^)]+\)_[_g' \
39+
| $sed -E 's_!\[flux-logo-inner-header-left[^)]+\)_\
40+
<div class="clearfix">\
41+
<div class="flux-logo-inner-header-left">\
42+
{{< figure src="/img/flux-horizontal-color.png" alt="Flux Logo" >}}\
43+
</div>_g' \
44+
| $sed -E 's_!\[inner-header-right-align[^)]+\)_\
45+
<div class="inner-header-right-align">\
46+
{{< figure src="/img/blob-waving.gif" alt="Blob Waving" >}}\
47+
</div></div>_g' \
48+
| $sed -E 's_!\[stickers-float-left[^)]+\)_\
49+
<div class="clearfix">\
50+
<div class="stickers-float-left">\
51+
{{< figure src="/img/flux-cuttlefish-stickers.jpeg" alt="Custom printed stickers with cuttlefish mascot and Flux logos" >}}\
52+
</div>_g' \
53+
| $sed -z 's_# KubeCon Paris 2024\n\nMarch 19-22, 2024_<div class="float-header-kubecon"><h1>KubeCon Paris 2024</h1><p>March 19-22, 2024</p></div>_' \
54+
| $sed -Ez 's_# Flux Booth fun!\n\n([^\n]+)\n\n([^\n]+)\n\n#_\
55+
<div class="float-booth-fun"><h1>Flux Booth fun!</h1><p>\1</p><p>\2</p></div></div>\n\n#_' \
3556
> ${OUT_FILE}
3657

3758
if [[ -z "$DEBUG" ]]; then

0 commit comments

Comments
 (0)