Skip to content

Commit 1205c51

Browse files
committed
reverting mistake
1 parent edb41dc commit 1205c51

File tree

2 files changed

+330
-72
lines changed

2 files changed

+330
-72
lines changed

.github/workflows/redocly_and_publish.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,18 @@ jobs:
3434

3535
- name: Generate HTML files
3636
run: |
37-
for file in ./*.yml dispoAPI/*.yml; do
37+
# Generate HTML for YAML files in root directory
38+
for file in ./*.yml; do
3839
if [ -f "$file" ]; then
39-
dir=$(dirname "$file")
40-
output_html="${dir}/index.html"
40+
output_html="${file%.*}.html"
41+
redocly build-docs -o "$output_html" "$file"
42+
fi
43+
done
44+
45+
# Generate HTML for YAML files in dispoAPI directory
46+
for file in dispoAPI/*.yml; do
47+
if [ -f "$file" ]; then
48+
output_html="dispoAPI/index.html"
4149
redocly build-docs -o "$output_html" "$file"
4250
fi
4351
done

0 commit comments

Comments
 (0)