Old Version Home Page Setup

安装Ruby

Windows直接从这里下载RubyInstaller,下载后按照提示安装即可。\
打开Ruby Prompt输入:

1
2
3
4
5
6
7
8
9
10
11

#install bundle, jekyll
gem install bundle jekyll

#cd to personal page directory
bundle init \\
bundle install \\
bundle exec jekyll server
(or jekyll serve)

#the page generated locally will update as you make changes

NPM & Hexo Setup

1
2
3
4
5
6
7
sudo apt update \\
sudo apt install nodejs \\
sudo apt install npm \\
node -v \\
npm -v \\
npm install -g hexo-cli \\
echo 'PATH="$PATH:./node_modules/.bin"' >> ~/.profile

Ref: Ayer中文说明. All modifications for this website should be done in themes folder, instead of public folder

Git Setup

Git cheatsheet: cheatsheet

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#clone from websit
git clone XXX.git

# generate private & public key
ssh -t rsa -C "email@XX.com"

# upload public key to github, test with:
ssh git@github.com

#set up configs
git config --global user.name "name"
git config --global user.email "email"

#handle proxy error
git config --global --unset http.proxy
git config --global --unset https.proxy

#make changes and submit
git add .
git commit -m "message"
git add remote origin "reop.git"
git psuh origin main
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2022-2024 Zstar
  • Visitors: | Views:

请我喝杯咖啡吧~