@@ -16,7 +16,7 @@ VERSIONS=$(jq -r '.[] | select(. != "HEAD")' docs-versions.json)
1616
1717# Check which folders are missing and create them
1818for VERSION in $VERSIONS ; do
19- if [ ! -d " $VERSION " ]; then
19+ if [ ! -d " versions/ $VERSION " ]; then
2020 echo " Creating missing folder for version: $VERSION "
2121
2222 # Change to upstream directory and reset to the specific tag
@@ -29,12 +29,30 @@ for VERSION in $VERSIONS; do
2929 cd ..
3030
3131 # Run the copy-upstream-docs.sh script with the version directory
32- echo " Copying docs to directory: $VERSION "
33- ./copy-upstream-docs.sh " $VERSION "
32+ echo " Copying docs to directory: versions/$VERSION "
33+ ./copy-upstream-docs.sh " versions/$VERSION "
34+
35+ echo " Converting community YAML files to MDX..."
36+
37+ # Check and convert experts
38+ if [ -f " upstream/site/en/community/experts/_index.yaml" ]; then
39+ echo " Converting experts for version $VERSION "
40+ ./convert-community-to-mdx.sh " community/experts" " versions/$VERSION /community/experts"
41+ else
42+ echo " Skipping experts conversion (file not found for $VERSION )"
43+ fi
44+
45+ # Check and convert partners
46+ if [ -f " upstream/site/en/community/partners/_index.yaml" ]; then
47+ echo " Converting partners for version $VERSION "
48+ ./convert-community-to-mdx.sh " community/partners" " versions/$VERSION /community/partners"
49+ else
50+ echo " Skipping partners conversion (file not found for $VERSION )"
51+ fi
3452
3553 echo " Successfully created docs for version $VERSION "
3654 else
37- echo " Folder $VERSION already exists, skipping"
55+ echo " Folder versions/ $VERSION already exists, skipping"
3856 fi
3957done
4058
0 commit comments