相识于微时,离别于成年。
更换清华源
https://mirrors.tuna.tsinghua.edu.cn/help/rubygems/ or https://gems.ruby-china.com/
https://jekyllrb.com/docs/installation/
# 注意只安装bundler,而非jekyll bundler,因为后续和gem "github-pages"依赖的Jekyll版本不兼容
gem install bundler
https://jekyllrb.com/docs/step-by-step/01-setup/
GitHub Pages 依赖项版本,请查阅 Dependency versions
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done # 卸载所有gem安装包
Gemfile
https://bundler.io/gemfile.html
bundle init # 创建一个新的Gemfile
# frozen_string_literal: true
source "https://mirrors.tuna.tsinghua.edu.cn/rubygems"
# git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
#
# gem "rails"
# gem "jekyll"
# gem 'jekyll-sitemap'
# gem 'jekyll-paginate'
# gem 'jekyll-seo-tag'
gem "github-pages", group: :jekyll_plugins
bundle install # 安装依赖项
bundle update github-pages # 更新依赖项
bundle exec jekyll build
bundle exec jekyll serve
https://docs.github.com/cn/github/working-with-github-pages/getting-started-with-github-pages
Comments
Be the first one to comment on this page!