-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclone-docs.sh
executable file
·42 lines (36 loc) · 1.25 KB
/
clone-docs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env bash
add_sidebar() {
cd "$1"/ || exit
for FILE in *.md; do
echo -e "\n\n---\n" >> "$FILE"
cat _Sidebar.md >> "$FILE"
done
cd .. || exit
}
cd docs || exit
mv UVKBuildTool UVKBuildToolN
# Please don't touch this there are a lot of problems with this specific file
sed -i '1 i\{{ raw' UntitledTemplatingEngine/Templating-guide.md
echo "}}" >> UntitledTemplatingEngine/Templating-guide.md
# Add back soon
#sed -i '1 i\{% raw %}' UntitledPackageSchemeGenerator/Creating-your-package.md
#echo "{% endraw %}" >> UntitledPackageSchemeGenerator/Creating-your-package.md
add_sidebar UntitledImGuiFramework
add_sidebar UntitledVulkanGameEngine
add_sidebar UntitledTemplatingEngine
add_sidebar UntitledExec
add_sidebar UntitledRuntimeLibraryLoader
add_sidebar YouyinWeb
add_sidebar UVKBuildToolN
add_sidebar UntitledCLIParser
add_sidebar UntitledGameSystemManager
add_sidebar UntitledXDGBasedir
add_sidebar UntitledImGuiTextUtils
add_sidebar UntitledImGuiTheme
add_sidebar UntitledI18N
add_sidebar SpotifyUtilities
add_sidebar UntitledOpen
add_sidebar UntitledDBusUtils
add_sidebar UntitledFlipperZero
add_sidebar UntitledLog
find ./ -type f -exec sed -i -E 's/https:\/\/github\.com\/MadLadSquad\/(.*)\/wiki/https:\/\/madladsquad\.com\/docs\/\1/g' {} \;