We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49bb006 commit f79762fCopy full SHA for f79762f
1 file changed
docs/build.sh
@@ -37,7 +37,8 @@ for LOCALE in ${LOCALES[@]}; do
37
template_list=""
38
for template in ./templates/*; do
39
template_name=$(basename $template)
40
- capitalize_template_name=$(echo $template_name | sed -E 's/(^|_|-)([a-z])/\U\2/g')
+ # Capitalize template name for display replace - with space
41
+ capitalize_template_name=$(echo $template_name | sed -E 's/[-_]/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) substr($i,2)}1')
42
template_list+="- :archive[$capitalize_template_name]{name="$template_name"}\n"
43
done
44
sed -i "s/{{TEMPLATES}}/${template_list}/g" ./docs/${LOCALE}/book/download.md
0 commit comments