328dbd0aa2
Signed-off-by: Mary Anthony <mary@docker.com> Upding sed, adding script to avoid redirects, remove mkdos Signed-off-by: Mary Anthony <mary@docker.com> Ignoring graphics with sed Signed-off-by: Mary Anthony <mary@docker.com> Fixing kitematic image Signed-off-by: Mary Anthony <mary@docker.com> Removing draft Signed-off-by: Mary Anthony <mary@docker.com> Fixing link Signed-off-by: Mary Anthony <mary@docker.com> removing from the menu Signed-off-by: Mary Anthony <mary@docker.com> Updatiing order of project material Signed-off-by: Mary Anthony <mary@docker.com> Removing from Regsitry v2 content per Olivier Signed-off-by: Mary Anthony <mary@docker.com> tweaking the touchup Signed-off-by: Mary Anthony <mary@docker.com> Removing include; only used four places; hugo global var replace Signed-off-by: Mary Anthony <mary@docker.com> Entering fixes from page-by-page Signed-off-by: Mary Anthony <mary@docker.com>
20 lines
400 B
Bash
Executable file
20 lines
400 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
|
|
# Sed to process GitHub Markdown
|
|
# 1-2 Remove comment code from metadata block
|
|
#
|
|
for i in ls -l /docs/content/*
|
|
do # Line breaks are important
|
|
if [ -d $i ] # Spaces are important
|
|
then
|
|
y=${i##*/}
|
|
find $i -type f -name "*.md" -exec sed -i.old \
|
|
-e '/^<!.*metadata]>/g' \
|
|
-e '/^<!.*end-metadata.*>/g' {} \;
|
|
fi
|
|
done
|
|
|
|
|
|
|
|
|