git clone git@github.com:dwgan/www.stacc.top.gitor pull update to local repository.
git pullYou can build the website on local machine or push them to Github directly if you are sure of no gramma error.
点这里查看如何在本地编译网站
首先,你需要在 Windows 上安装 Ruby。推荐使用 RubyInstaller 来安装。
- 下载并安装 Ruby+Devkit(选择 2.x 版本)。
- 在安装过程中,选择“Add Ruby executables to your PATH”。
- 安装完成后,打开命令行(cmd 或 PowerShell),输入
ruby -v和gem -v来检查 Ruby 是否成功安装。
打开命令行工具,输入以下命令来安装 Jekyll 和 Bundler:
gem install jekyll bundler选择一个文件夹来存放你的网站,然后在命令行中执行:
git clone https://github.com/mmistakes/minimal-mistakes.git .如果你没有安装 Git,可以从 Git 官网 下载并安装。
在命令行中,进入到你的项目目录并安装依赖:
bundle install安装完依赖后,你可以使用以下命令启动本地服务器:
bundle exec jekyll serve --incremental网站将在 http://localhost:4000 上运行。
rm -r _site
git add .git commit -m 'descrip what have been modified'git push origin main