项目作者: crispgm

项目描述 :
A personal curation of tech articles
高级语言: Ruby
项目地址: git://github.com/crispgm/weekly.git
创建时间: 2017-07-02T10:34:36Z
项目社区:https://github.com/crispgm/weekly

开源协议:MIT License

下载


Crisp Minimal Weekly

GitHub CI

Personal curation of tech articles. The articles are mostly English and the comments are in Chinese.
Started as a weekly, and now it is without certain interval.

Install

  1. Clone

    1. $ git clone https://github.com/crispgm/weekly.git
  2. Bundler

    1. $ bundle install
  3. Run

    1. $ rake serve

Deliver Articles

To deliver articles, please leave comment to issue with specific format:

  1. /post
  2. - Your awesome title
  3. - https://your-awesome.com/link-to-article.html
  4. - Why you recommend the article in short.

Format Specification

Field Type
title String (Support inline html)
link String
comment String (Support inline html)

Work with rake

Create Weekly

  1. $ rake weekly:create

It will generate scaffolds with date:

  1. _weekly/2016-10-09-weekly.md

To specify date:

  1. $ rake weekly:create[2016-10-09]

P.S. In zsh, we need to use backslash escape:

  1. $ rake weekly:create\[2016-10-09\]

Create GitHub Issue

  1. $ ACCESS_TOKEN=your-access-token-here rake weekly:open[2016-10-09]

Import Articles From GitHub Issue

  1. $ ACCESS_TOKEN=your-access-token-here rake weekly:import[2016-10-09]

Edit Weekly

Open and edit the latest entry:

  1. $ rake weekly:edit-latest

To use non-default editors, pass an env variable to rake:

  1. $ EDITOR=subl rake weekly:edit-latest

Tests

There are several tests to check typos and duplicates errors.

  1. $ rake test-weekly

It scan all weeklys by default, to specify date:

  1. $ rake test-weekly[2016-11-15]

For the latest weekly, pass latest:

  1. $ rake test-weekly[latest]

Errors will show with highlighted message to indicates the item:

  1. [ERROR] Duplicated name within a weekly found:
  2. Filename: 2016-11-22-weekly.md
  3. Item: 1
  4. >> Name: Google 是如何做到从不宕机的

Press

License

MIT