You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Find all .mdx files in the output directory and append their content
108
+
find "${{ steps.codeboarding.outputs.output_directory }}" -name "*.mdx" -type f | sort | while read file; do
109
+
if [ -f "$file" ]; then
110
+
filename=$(basename "$file" .mdx)
111
+
112
+
# Add a header for each file
113
+
echo "### $(echo "$filename" | sed 's/_/ /g' | sed 's/\b\w/\U&/g')" >> docs/development.mdx
114
+
echo "" >> docs/development.mdx
115
+
116
+
# Append the content of the file (skip frontmatter if present)
117
+
if head -n 1 "$file" | grep -q "^---"; then
118
+
# Skip frontmatter (from first --- to second ---)
119
+
sed -n '/^---$/,/^---$/d; /^---$/,$p' "$file" >> docs/development.mdx
120
+
else
121
+
# No frontmatter, append entire file
122
+
cat "$file" >> docs/development.mdx
123
+
fi
124
+
125
+
echo "" >> docs/development.mdx
126
+
echo "---" >> docs/development.mdx
127
+
echo "" >> docs/development.mdx
143
128
fi
144
-
145
-
rm -f generated_files_list.txt
146
-
fi
147
-
148
-
# Update development.mdx to mention auto-generated documentation
149
-
# Insert before the Project Structure section
150
-
sed -i '/## Project Structure/i \
151
-
## Auto-Generated API Documentation\
152
-
\
153
-
This project includes automatically generated API documentation files created by the CodeBoarding documentation workflow. These files provide detailed documentation for the codebase and are updated automatically when changes are made to the source code.\
154
-
\
155
-
The auto-generated documentation files are located in the **API Reference** section of this documentation site under "Auto-Generated API Documentation".\
156
-
\
157
-
' docs/development.mdx
129
+
done
158
130
fi
159
131
160
132
- name: Create Pull Request
@@ -175,7 +147,7 @@ The auto-generated documentation files are located in the **API Reference** sect
0 commit comments