We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edb41dc commit 1205c51Copy full SHA for 1205c51
.github/workflows/redocly_and_publish.yml
@@ -34,10 +34,18 @@ jobs:
34
35
- name: Generate HTML files
36
run: |
37
- for file in ./*.yml dispoAPI/*.yml; do
+ # Generate HTML for YAML files in root directory
38
+ for file in ./*.yml; do
39
if [ -f "$file" ]; then
- dir=$(dirname "$file")
40
- output_html="${dir}/index.html"
+ 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"
49
redocly build-docs -o "$output_html" "$file"
50
fi
51
done
0 commit comments