From 384faa1ccf62fe751795e90209020ef68f597387 Mon Sep 17 00:00:00 2001 From: Chi Huu Huynh <73843190+Chi-EEE@users.noreply.github.com> Date: Fri, 19 Apr 2024 20:22:56 +0100 Subject: [PATCH] Update generate_documentation.yml --- .github/workflows/generate_documentation.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate_documentation.yml b/.github/workflows/generate_documentation.yml index f0238d28..1c83d69c 100644 --- a/.github/workflows/generate_documentation.yml +++ b/.github/workflows/generate_documentation.yml @@ -16,9 +16,10 @@ jobs: - name: Add ``` to Svelte files From ChatGPT run: | - for file in *.svelte; do - sed -i '1i\ - \```' "$file" && echo '```' >> "$file" + find ./app/admin_panel -type f -name '*.svelte' -print0 | + while IFS= read -r -d '' file; do + sed -i "1i\```" "$file" + echo '```' >> "$file" done - name: Build Doxygen documentation for Admin Panel