Skip to content

Commit

Permalink
Merge pull request #7926 from ballerina-platform/keizer619-patch-1
Browse files Browse the repository at this point in the history
Update rearrangeFiles.sh
  • Loading branch information
praneesha authored Sep 26, 2023
2 parents 9480edb + b027cba commit 4e1f02d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/rearrangeFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
cp -r ./out/learn/development-tutorials/* ./out/learn
cp -r ./out/learn/integration/* ./out/learn
cp -r ./out/learn/integration-tools/* ./out/learn
cp -r ./out/learn/troubleshoot-the-runtime/* ./out/learn
cp -r ./out/learn/references/* ./out/learn
cp -r ./out/learn/resources/* ./out/learn
cp -r ./out/policies/* ./out/
Expand All @@ -28,14 +29,15 @@ cp -r ./out/learn/learn-the-language/* ./out/learn
cp ./out/404/index.html ./out/404.html

#Remove duplicated files
rm -rf ./out/learn/development-tutorials/ ./out/learn/integration/ ./out/learn/integration-tools/ ./out/policies/ ./out/learn/references/ .out/learn/resources/
rm -rf ./out/learn/development-tutorials/ ./out/learn/integration/ ./out/learn/integration-tools/ ./out/learn/troubleshoot-the-runtime/ ./out/policies/ ./out/learn/references/ .out/learn/resources/
rm -rf ./out/learn/build-a-graalvm-executable ./out/learn/ballerina-central/ ./out/learn/configurability/ ./out/learn/java-interoperability/ ./out/learn/test-document-the-code/ ./out/learn/source-code-dependencies/ ./out/learn/ballerina-persist/ ./out/learn/build-and-run/ ./out/learn/observability/ ./out/learn/featured-scenarios/ ./out/learn/learn-the-language/* ./out/learn/run-in-the-cloud/


#Edit the sitemap
sed -i '' 's/development-tutorials\///g' ./out/sitemap.xml
sed -i '' 's/integration\///g' ./out/sitemap.xml
sed -i '' 's/integration-tools\///g' ./out/sitemap.xml
sed -i '' 's/troubleshoot-the-runtime\///g' ./out/sitemap.xml
sed -i '' 's/references\///g' ./out/sitemap.xml
sed -i '' 's/resources\///g' ./out/sitemap.xml
sed -i '' 's/policies\///g' ./out/sitemap.xml
Expand Down

0 comments on commit 4e1f02d

Please sign in to comment.