Giter Club home page Giter Club logo

commandlinefu.cn's Introduction

打造 中文版的 http://commandlinefu.com

贡献你的力量

@titikaka723 写的github初学者贡献参考手册

  • 下载代码
$ git clone https://github.com/tg123/commandlinefu.cn.git
cd commandlinefu.cn
  • 寻找一个没有翻译的文件 (会调用你的 $EDITOR 来编辑这个文件)
./tools/translateone.sh
  • 翻译参考
$ git diff _data/head_n_20_filename_tail.yaml
diff --git a/_data/head_n_20_filename_tail.yaml b/_data/head_n_20_filename_tail.yaml
index b5d0efe..970e1a8 100644
--- a/_data/head_n_20_filename_tail.yaml
+++ b/_data/head_n_20_filename_tail.yaml
@@ -1,8 +1,7 @@
 commandlinefu_id: 7044
 translator:
-  weibo: ''
-hide: true
+  weibo: tgic
 command: |-
   head -n 20 <filename> | tail
 summary: |-
-  Print all the lines between 10 and 20 of a file
+  输出文件的10到20行
  • 说明
  1. weibo: tgic 会在页面显示出 @tgic 翻译
  2. 删除 hide: true 自动构建程序会知道你已经翻译了这个文件
  3. 内容就是 summary 编译成汉语就好了 当然命令你也可以修改
  • 发送你的 pull request

实现原理

安装需要的软件 ruby 需要 > 1.9.2

gem install jekyll nokogiri json

网站使用 jekyll 构建. 需要至少1.3

可以通过运行

jekyll build

在本地构建你的网站

依赖的插件

关于使用commandlinefu.com内容

commandlinefu.com 站长 David Winterbottom :

You're welcome to re-publish the commandlinefu content.

授权(public domain)

commandlinefu.cn's People

Contributors

tg123 avatar zjjott avatar codepiano avatar titikaka723 avatar shidaxi avatar liuzz avatar josephok avatar sunuslee avatar

Watchers

James Cloos avatar

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.