Skip to content

seven-steven/webstack-jekyll

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 457 commits ahead of 0xl2oot:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

bookmark.diqigan.cn

这是一个纯静态的导航网站。 样式取自 viggo 开发的 webstack.cc。 内容由 Seven 收集整理。

环境配置

Docker 启动

docker run -it \
  --rm \
  -v=$PWD:/srv/jekyll \
  -p 4000:4000 \
  jekyll/jekyll:4.2.0 jekyll serve

Docker 编译

docker run --rm -it \
  -v ${PWD}:/srv/jekyll \
  -v ${PWD}/_site:/srv/jekyll/_site \
  jekyll/builder:4.2.0 /bin/bash -c '
    gem sources -r https://rubygems.org/ -a https://gems.ruby-china.com/ && \
    bundle config mirror.https://rubygems.org https://gems.ruby-china.com && \
    bundle config --delete "mirror.https://rubygems.org" && \
    jekyll build --future'

手动安装

  1. 参考 安装 - Jekyll • 简单静态博客网站生成器 安装 Ruby,Gem,NodeJs,Python 等软件;

  2. 配置 Gem:

    # 移除gem默认源,改成ruby-china源
    gem sources -r https://rubygems.org/ -a https://gems.ruby-china.com/
    # 使用Gemfile和Bundle的项目,可以做下面修改,就不用修改Gemfile的source
    bundle config mirror.https://rubygems.org https://gems.ruby-china.com
    # 删除Bundle的一个镜像源
    bundle config --delete 'mirror.https://rubygems.org'
  3. 安装 jekyll

    gem install jekyll

致谢

  • 感谢 JetBrains 提供开发工具支持。

About

🎉 高颜值纯净态导航网站

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 91.1%
  • JavaScript 6.2%
  • HTML 2.5%
  • Other 0.2%