git clone https://github.com/gohugoio/hugoDocs.git
cd hugoDocs
hugo -D server
出现类似下面报错,hugoDocs中的config.toml增加timeout = 100000000000,单位ms
timeout默认值过短,原因为hugo生成网站时间超出默认配置
Error building site: ".../hugoDocs/content/en/troubleshooting/faq.md:1:1": timed out initializing value. You may have a circular loop in a shortcode, or your site may have resources that take longer to build than the `timeout` limit in your Hugo config file.
中文官网(http://jekyllcn.com/)
mac自带的ruby,gem安装权限问题-示例本地运行fyne官网
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
sudo gem install fastlane,采用sudo
gem install fastlane –user-install, 采用用户级别安装
sudo gem install -n /usr/local/bin fastlane,同时指时路径
bundle exec jekyll serve-如果出错
常用参数
# -w 表示监控文件变化及时生成网站
# --incremental 增量构建
# 启动过程会有点慢,需要等待一会儿
jekyll serve -w --port=4001
gem 'github-pages', group: :jekyll_plugins
curl -sSL https://get.rvm.io | bash -s stable