- Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstart.sh
23 lines (14 loc) · 633 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
# Description: This script is used to generate the docs folder from the src folder
# delete solution folder if it exists
rm -rf docs/solution;
# copy all markdown files from src to docs with the same directory structure
find src -iname "*.md" -exec cp --parents {} docs \;
# rename src to solution
mv docs/src docs/solution;
# rename all directories to {$DIR}.md
find docs/solution -iname "*.md" -exec bash -c ' DIR=$( dirname "{}" ); mv "{}" "$DIR".md; rmdir "$DIR" '\;
# rename solution.md to SERIALWISE.md
mv docs/solution.md docs/SERIALWISE.md;
# copy TOPICWISE.md to docs
cp TOPICWISE.md docs;