From ceff57e94b9b6e8e3a8d6a631e4e54a6555332c8 Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Tue, 27 Feb 2024 13:29:52 -0500 Subject: [PATCH] clean up comments in source code Signed-off-by: Kingdon Barrett --- script/update-kubecon.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/script/update-kubecon.sh b/script/update-kubecon.sh index b7bce6ad..50c76ac4 100755 --- a/script/update-kubecon.sh +++ b/script/update-kubecon.sh @@ -20,6 +20,7 @@ fi # sed 1: Remove "Copy heading link" text, which is inserted by Google Site # sed 2: make site top-link self-referential, it should point at /kubecon # sed 3: remove empty image alt ref with no significance (branding logo) +# sed 4-6: detect the images from their alt tags, then replace with figure refs wget ${SOURCE_SITE} -O ${TEMP_FILE} \ && ${HTML2MD_BIN} -i ${TEMP_FILE} |sed '1,6d'|head -n -13 \ | sed 's_# \[Copy heading link\](\\#h\.[a-z0-9]*)[[:space:]]*_# _' \ @@ -33,9 +34,6 @@ wget ${SOURCE_SITE} -O ${TEMP_FILE} \ {{< figure src="img/flux-cuttlefish-stickers.jpeg" alt="Custom printed stickers with cuttlefish mascot and Flux logos" class="stickers-float-left" >}}_g' \ > ${OUT_FILE} -# TODO: The remaining images all have alt-text which can be further -# re-processed into CSS selectors? or maybe short codes, I think 😵 - if [[ -z "$DEBUG" ]]; then rm ${TEMP_FILE} && rm -rf ${HTML2MD}* fi