Skip to content

Commit

Permalink
reverting mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
timschaeren committed Sep 26, 2024
1 parent edb41dc commit 1205c51
Show file tree
Hide file tree
Showing 2 changed files with 330 additions and 72 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/redocly_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,18 @@ jobs:

- name: Generate HTML files
run: |
for file in ./*.yml dispoAPI/*.yml; do
# Generate HTML for YAML files in root directory
for file in ./*.yml; do
if [ -f "$file" ]; then
dir=$(dirname "$file")
output_html="${dir}/index.html"
output_html="${file%.*}.html"
redocly build-docs -o "$output_html" "$file"
fi
done
# Generate HTML for YAML files in dispoAPI directory
for file in dispoAPI/*.yml; do
if [ -f "$file" ]; then
output_html="dispoAPI/index.html"
redocly build-docs -o "$output_html" "$file"
fi
done
Expand Down
Loading

0 comments on commit 1205c51

Please sign in to comment.