forked from examdawn/helper_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
33 lines (22 loc) · 1.44 KB
/
build.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
#!/usr/bin/bash
# curl https://raw.githubusercontent.com/nios-students/helper_scripts/refs/heads/main/build.sh | bash
# Assume we're already in cf pages which lands us in docs folder
# cleanup
rm -rf helper-scripts/ temp/ wiki/ home/ contribute.md takedown.md typography.md ../node_modules .vitepress/dist || true
# Clone sources
git clone https://github.com/nios-students/helper_scripts/ helper-scripts --depth=1 # Scripts
#git clone https://github.com/examdawn/NEP2020_2023_BCA NEP2020/2023/BCA --depth=1 # Clone BCA
#git clone https://github.com/examdawn/NEP2020_2024_BCA NEP2020/2024/BCA --depth=1 # Clone BCA
#git clone https://github.com/examdawn/NEP2020_2024_BSc NEP2020/2024/BSc --depth=1 # Clone BSc
# Copy Our course content to wiki folder
git clone https://github.com/nios-students/docs -b contents temp && mv temp/{wiki,home} . && mv temp/index.md .
#git clone https://github.com/examdawn/NEP_2023_BCA NEP2020/2023/BSc-Math --depth=1
#git clone https://github.com/examdawn/NEP_2023_BCA NEP2020/2023/BSc-Physics --depth=1
mv helper-scripts/md/*.md . # Move the md files to current docs dir
#bash helper-scripts/gen-md.sh # Create all the folders
cd .. #assume we're starting in docs folder
npm install
npm run docs:build # Build, it will pop up in
#cp docs/helper-scripts/templates/template_headers docs/.vitepress/dist/_headers # Copy headers, https://vitepress-python-editor.netlify.app/installation#_4-set-http-headers
# Cleanup
rm -rf temp || true