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.
-
Clone
$ git clone https://github.com/crispgm/weekly.git
-
Bundler
$ bundle install
-
Run
$ rake serve
To deliver articles, please leave comment to issue with specific format:
/post
- Your awesome title
- https://your-awesome.com/link-to-article.html
- Why you recommend the article in short.
Field | Type |
---|---|
title | String (Support inline html) |
link | String |
comment | String (Support inline html) |
$ rake weekly:create
It will generate scaffolds with date:
_weekly/2016-10-09-weekly.md
To specify date:
$ rake weekly:create[2016-10-09]
P.S. In zsh
, we need to use backslash escape:
$ rake weekly:create\[2016-10-09\]
$ ACCESS_TOKEN=your-access-token-here rake weekly:open[2016-10-09]
$ ACCESS_TOKEN=your-access-token-here rake weekly:import[2016-10-09]
Open and edit the latest entry:
$ rake weekly:edit-latest
To use non-default editors, pass an env variable to rake
:
$ EDITOR=subl rake weekly:edit-latest
There are several tests to check typos and duplicates errors.
$ rake test-weekly
It scan all weeklys by default, to specify date:
$ rake test-weekly[2016-11-15]
For the latest weekly, pass latest
:
$ rake test-weekly[latest]
Errors will show with highlighted message to indicates the item:
[ERROR] Duplicated name within a weekly found:
Filename: 2016-11-22-weekly.md
Item: 1
>> Name: Google 是如何做到从不宕机的
- How I build engineering weekly automatically (In Chinese)
MIT