Giter Site home page Giter Site logo

xcatliu / jekyllcn Goto Github PK

View Code? Open in Web Editor NEW
471.0 35.0 135.0 14.19 MB

Jekyll 的中文翻译网站

Home Page: http://jekyllcn.com

License: MIT License

CSS 0.15% Ruby 70.29% HTML 4.24% Shell 0.90% CoffeeScript 0.03% Gherkin 18.63% SCSS 5.74% Hack 0.01%

jekyllcn's Introduction

JekyllCN

Build Status

网址:http://jekyllcn.com/

Forked from Jekyll.

JekyllCNJekyll 的中文翻译网站。

公告

由于官方文档更新,现在中文文档落后于官方文档,欢迎参与贡献翻译

注意:中文排版遵循这个规范:写给大家看的中文排版指南。暂时放弃了翻译 contributing 和 history,因为他们是脚本生成的。

如何贡献翻译

  1. 新建一个 issue,说明要贡献哪篇文档(可以是落后于官方版本的中文文档,也可以是还没有翻译的文档),注意翻译之前先看看 issues 里面有没有人已经认领了
  2. fork 之后,修改 /site/_docs/ 中的对应文档进行翻译,并在本地预览,如果不知道如何在本地启动,可以参考如何在本地启动
  3. 注意在 Front Matter 中将自己加入到 translators 字段,若无此字段,则添加一个
  4. 注意在 Front Matter 中更新 update_date,若无此字段,则添加一个
  5. 若要修改 css,请修改 /site/_sass/_jekyllcn.scss,新增的 css 以 .jekyllcn- 开头,尽量避免破坏 jekyll 的文件
  6. 提交一个 pull-request,等待审核

如何在本地启动

  1. 安装 bundle
  2. 执行 bundle install
  3. 执行 bundle exec rake site:preview

参考 contributing

如何发布到 jekyllcn.com

使用 Travis CI 自动发布:https://travis-ci.org/xcatliu/jekyllcn

如何同步最新的 Jekyllrb

git remote add jekyllrb [email protected]:jekyll/jekyll.git
git fetch jekyllrb master
git merge jekyllrb/master
# 解决冲突

项目进度

基础建设

  • 跟进官方网站版本 (2016-05-10)
  • 首页中文适配 (2016-04-20)
  • 页脚加上贡献翻译链接
  • 导航加上贡献翻译链接
  • 每篇文档加上贡献翻译链接
  • 加上 ga
  • 加上适配 jekyllcn 的 css
  • 加上如何贡献翻译的文档
  • 加上如何本地启动的文档
  • 加上项目进度的文档
  • header 中文适配
  • 上一节下一节中文适配
  • 右侧表头中文适配
  • head 中文适配
  • 每篇文文档加上原文链接
  • 在 header 中加入贡献翻译链接
  • 每篇文档加上翻译贡献者
  • 在 header 中底色代表项目进度
  • 使用 Travis CI 自动发布

jekyllcn's People

Contributors

afeld avatar albertogg avatar alfredxing avatar ayastreb avatar benbalter avatar chrisfinazzo avatar cobyism avatar crispgm avatar debbbbie avatar dirtyf avatar envygeeks avatar gjtorikian avatar jackdanger avatar jekyllbot avatar krisb avatar martinrogalla avatar mattr- avatar mojombo avatar mreid avatar parkr avatar pathawks avatar qrush avatar stephenmcd avatar suriyaakudoisc avatar timotokki avatar tombell avatar willnorris avatar xcatliu avatar xhmikosr avatar yizeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jekyllcn's Issues

[question]how to add a new post?

What version of Jekyll are you using (jekyll -v)?

Jekyll 3.1.2

What operating system are you using?

Ubuntu 15.10

What did you do?

(Please include the content causing the issue, any relevant configuration settings, and the command you ran)

When I was ready to update some old translations posts, I found there is a new post Themes in jekyllrb.com, but not in jekyllcn.com.

What did you expect to see?

I want to know how to add a new post in order.

What did you see instead?

No new posts.

翻译 history

顺便申请加入 collaborator 列表
虽然历史更新没多大意义, 但是看着就它没被翻译总心痒痒的

部署出现 bug

部署完成后会出现一个 not staged file:

modified:   site/_docs/history.md

并且此文件未部署成功

网站挂了

网站 404 了,没找到原因。ga 显示已经挂了三天了

jekyllcn无法正常登录

都好几天了,不翻墙登陆不了。以前都好好的呀。
英文版的网站正常。
我在上海

去掉进度展示

根据 #129 讨论,决定去掉进度展示。具体需要做以下修改:

  1. 给每一篇文档添加一个 frontmatter update_date,依照 README.md 中的更新日期设置它的值,没有的话置空,至于如何使用 update_date,此任务不涉及
  2. 去掉 README.md 中的「项目进度」模块,但是保留「基础建设」模块
  3. 注释掉顶部进度条相关的代码(方便以后添加公告)

分页代码不对

http://jekyllcn.com/docs/pagination/的
“注意首尾页
Jekyll 没有生成文件夹 ‘page1’ ,所以上边的代码有 bug ,下边的代码解决了这个问题。”之后的代码粘贴过去依然找不到分页后的地址,而且样式很挫。
qq20150902-1 2x
qq20150902-2 2x

更新成http://jekyllrb.com/docs/pagination/
里“Beware the page one edge-case
Jekyll does not generate a ‘page1’ folder, so the above code will not work when a /page1 link is produced. See below for a way to handle this if it’s a problem for you.”
下方的代码就好了。
qq20150902-3 2x
qq20150902-4 2x

更新 “开始” 栏目的文档

翻译了前两个,我先提交一个 pull request,等全部翻译完你再 merge
另外之前翻译的是哪个版本的文档?人肉对比好难找到官方更新的地方,只能在 git 的 history 里一个个找

fatal: jekyllrb/master - not something we can merge

  • jekyll 3.3.0
  • CentOS Linux release 7.2.1511 (Core)

I tried to follow the README to get the lastest jekyllrb

git remote add jekyllrb [email protected]:jekyll/jekyll.git
git fetch jekyllrb master
git merge jekyllrb/master
# 解决冲突

then I got the following error:

$ git remote add jekyllrb [email protected]:jekyll/jekyll.git
$ git fetch jekyllrb master
remote: Counting objects: 1421, done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 1421 (delta 597), reused 567 (delta 567), pack-reused 797
Receiving objects: 100% (1421/1421), 391.78 KiB | 522.00 KiB/s, done.
Resolving deltas: 100% (979/979), completed with 158 local objects.
From github.com:jekyll/jekyll
 * branch            master     -> FETCH_HEAD
$ git merge jekyllrb/master
fatal: jekyllrb/master - not something we can merge

jekyll文件编辑问题


  • [* ] I am on (or have tested on) Debian/Ubuntu GNU/Linux

在我安装完成 jekyll 后,我使用 vim 编辑 jekyll 的配置文件,会自动安装 vim 插件,怎么设置才能让这种情况不发生?

jekyll serve error

Configuration file: /Users/XcatLiu/Workspace/github/jekyllcn/site/_config.yml
            Source: /Users/XcatLiu/Workspace/github/jekyllcn/site
       Destination: /Users/XcatLiu/Workspace/github/jekyllcn/site/_site
      Generating...
  Liquid Exception: Invalid syntax for include tag. File contains invalid characters or sequences: Valid syntax: {% include file.ext param='value' param2='value' %} in _docs/templates.md
jekyll 2.5.3 | Error:  Invalid syntax for include tag. File contains invalid characters or sequences:



Valid syntax:

  {% include file.ext param='value' param2='value' %}

[更新]更新配置页翻译

自定义 WEBRick 消息头 & 指定 Jekyll 构建时的环境变量 部分翻译不太通顺,有一些技术性名词翻译错误,进行修正

讨论不用翻译的词汇

Wiki里现在规定了的:

  • Jekyll
  • GitHub Pages

我暂时想补充的 (注意大小写及词间是否使用空格的格式, 但格式仅限于正文,不限于出现在code里的):

  • GitHub
  • Markdown
  • Textile
  • Liquid
  • HTML
  • CSS
  • Redcarpet
  • Ruby
  • RubyGems
  • Linux
  • Unix
  • Mac OS X
  • Windows
  • Xcode
  • LaTex
  • Pygments
  • ProTip (因为是trademark,不宜翻译)
  • Gem (或 gem,若在句中)
  • URL
  • Wiki
  • YAML

我不能确定是否应该翻译,但大家暂时遗留在已翻译文章里,还没有翻译的短语(皆非专有名词):

  • issue
  • file an issue
  • pull request
  • troubleshooting
  • report an issue
  • the extras page
  • flags

如何处理进度?

我们已经可以使用 Travis CI 来自动化部署网页了。但是还是得手动修改 progress,这点很麻烦。

其实翻译基本已经完成了,只是有些文档还比较落后。所以现在的进度提示可能也不是很准确。

我提供一些想法:

  1. 取消「翻译」和「更新」的区别,统一为最后更新时间。
  2. 取消「进度」机制,README.md 不再显示当前进度。
  3. 顶部公告栏不再显示当前进度,而改为一些更有意思的内容(比如主题搜集,博客搜集)。
  4. 每篇文档显示最后更新时间,并欢迎用户协助更新。

网站关闭了?

为什么我访问网站的时候,显示的是这个样子?网站关闭了?
网站关闭了?

有几处要改善的地方

  1. README.md 的 contributing 链接应该成 jekycn 的。
  2. Gemfile 里的 source 'https://rubygems.org' 改成 source 'http://ruby.taobao.org'

css 样式问题

举例里的 table 超出了宽度
浏览器:chrome 43.0, Firefox 38.0
系统: linux mint 17.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.