In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to configure Jekyll in Github under Window, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.
One, Install Jekyll in windows
Http://www.madhur.co.in/blog/2011/09/01/runningjekyllwindows.html
Note:
1. After installing Ruby, you need to set the environment variable of Ruby, and all subsequent commands are based on this.
2, in execution
The command will take a long time, it doesn't matter, proceed to the second step.
Second, Github pages
Http://pages.github.com/
Purpose: to create the repository of the website, where static related documents will be stored.
Three, Template
Borrowed template: http://ellochen.github.io/
Just copy it to the corresponding folder.
Fourth, the association between Jekyll and github page
Https://help.github.com/articles/using-jekyll-with-pages#keeping-jekyll-up-to-date
Execute and install the appropriate associated package.
In addition, you can install jekyll github-related plug-ins:
Https://help.github.com/articles/using-jekyll-plugins-with-github-pages
Five, Build
Under the corresponding folder, execute the jekyll build command.
Six, Publish
After Note:commit, it will not take effect immediately.
Seventh, the problems encountered
1, error: invalid byte sequence in GBK
Http://jekyllrb.com/docs/windows/#installation
Solution: execute command: chcp 65001
2, Missing dependency: rdiscount
In fact, I copied the template, installed a plug-in.
Looking at the information on the Internet, we found that the reason is that Jekyll's default markdown parser, maruku, is not perfect for Chinese support, so it is decisively replaced with a RDiscount parser, and the problem is solved.
Execute the command gem install rdiscount
3, Could not find a valid gem 'rdiscount' (> = 0)
Https://github.com/davidfstr/rdiscount
4, because it was dropped by the wall, it can only be installed locally.
Download address: http://rubygems.org/gems/rdiscount/versions/2.1.7
Cd to the corresponding folder, and execute the naming: gem install rdiscount-2.1.7.gem-- local
5, then continue to check the missing gem library and execute the command jekyll serve-watch
The error message is as follows:
The same method is installed locally.
6,invalid byte sequence in GBK .
For the problem of coding, the solution can be selected according to the corresponding version:
Http://kaiimeng.cn/my-first-octopress-blog/
7, add dispus
8, there is no feedback email problem
A particular 2b problem is that the name of google page must match the name of github's account.
Eighth, how to debug
Actually, it's how to output log to help find the problem.
1, Cd to the directory
2. Execute jekyll serve, and you can see the corresponding page effect in http://localhost:4000. If there is a problem, it will also report an error.
Thank you for reading this article carefully. I hope the article "how to configure Jekyll in Github under Window" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.