Skip to content

Commit

Permalink
clean up comments in source code
Browse files Browse the repository at this point in the history
Signed-off-by: Kingdon Barrett <[email protected]>
  • Loading branch information
kingdonb committed Feb 27, 2024
1 parent 2eaa951 commit ceff57e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions script/update-kubecon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:]]*_# _' \
Expand All @@ -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

0 comments on commit ceff57e

Please sign in to comment.