chore(scripts): more logging
Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
@@ -239,7 +239,9 @@ jobs:
|
|||||||
for file in website/docs/charts/${train}/${chart}/*.md; do
|
for file in website/docs/charts/${train}/${chart}/*.md; do
|
||||||
# Extract the file name and first line from each file
|
# Extract the file name and first line from each file
|
||||||
filename=$(basename "${file}")
|
filename=$(basename "${file}")
|
||||||
|
echo "Found doc file: ${file}"
|
||||||
title=$(cat "${file}" | grep "title: " | sed 's/title: //')
|
title=$(cat "${file}" | grep "title: " | sed 's/title: //')
|
||||||
|
echo "The title is: ${title}"
|
||||||
# Create a markdown link using the file name and title
|
# Create a markdown link using the file name and title
|
||||||
link="[**${title}**](${filename%.md})"
|
link="[**${title}**](${filename%.md})"
|
||||||
if [ ${filename} != "index.md" ]; then
|
if [ ${filename} != "index.md" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user