forked from examdawn/helper_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
28 lines (18 loc) · 1.23 KB
/
build.sh
File metadata and controls
28 lines (18 loc) · 1.23 KB
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
#!/usr/bin/bash
# curl https://raw.githubusercontent.com/examdawn/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/ NEP*/ contribute.md takedown.md typography.md ../node_modules .vitepress/dist || true
# Clone sources
git clone https://github.com/examdawn/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
#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