only parse md files

This commit is contained in:
Stavros Kois 2022-12-18 22:29:53 +02:00 committed by GitHub
parent 16256dfe2f
commit e3ac7bb734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -109,7 +109,7 @@ jobs:
echo "" >> website/docs/charts/${train}/${chart}/index.md
# Iterate over all files in the docs directory
for file in website/docs/charts/${train}/${chart}/*; do
for file in website/docs/charts/${train}/${chart}/*.md; do
# Extract the file name and first line from each file
filename=$(basename "${file}")
title=$(head -n 1 "${file}" | sed 's/# //')