more fixes

This commit is contained in:
Stavros kois
2024-05-12 22:01:40 +03:00
parent b49d68863f
commit f56cec4b47
2 changed files with 5 additions and 7 deletions

View File

@@ -5,11 +5,9 @@
make_sure_structure_is_there() {
local train="$1"
local chart="$2"
if [[ ! -f "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md" ]]; then
echo "changelog not found, starting with empty changelog..."
touch "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md"
fi
echo "Checking if website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md exists"
mkdir -p "website/src/content/docs/charts/${train}/${chart}" || echo "chart path already exists, continuing..."
touch "website/src/content/docs/charts/${train}/${chart}/CHANGELOG.md"
}
keep_safe_docs() {
@@ -143,7 +141,7 @@ process_index() {
continue
fi
title=$(yq '.title' ${file} | head -n 1)
title=$(yq --front-matter=process '.title' ${file} | head -n 1)
echo "The title is: ${title}"
echo "Generating markdown links"