Skip to content

Commit c79a8cb

Browse files
committed
Merge pull request #15 from marocchino/add-checkers
Add markup, link checkers (resolve #14)
2 parents c6b5ac4 + b72d3b6 commit c79a8cb

4 files changed

Lines changed: 43 additions & 7 deletions

File tree

‎Gemfile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ gem 'travis'
99
gem 'rack-jekyll'
1010
gem 'rack-rewrite'
1111
gem 'rack-protection'
12+
13+
group :development do
14+
gem 'spidr', '~> 0.4'
15+
gem 'validate-website', '~> 0.9'
16+
end

‎Gemfile.lock‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,15 @@ GEM
4848
rb-kqueue (>= 0.2)
4949
maruku (0.7.0)
5050
method_source (0.8.2)
51+
mini_portile (0.6.1)
5152
multi_json (1.10.1)
5253
multipart-post (2.0.0)
54+
multipart_body (0.2.1)
5355
net-http-persistent (2.9.4)
5456
net-http-pipeline (1.0.1)
57+
nokogiri (1.6.5)
58+
mini_portile (~> 0.6.0)
59+
paint (0.9.0)
5560
parslet (1.5.0)
5661
blankslate (~> 2.0)
5762
posix-spawn (0.3.9)
@@ -81,6 +86,8 @@ GEM
8186
redcarpet (2.3.0)
8287
safe_yaml (1.0.4)
8388
slop (3.6.0)
89+
spidr (0.4.1)
90+
nokogiri (~> 1.3)
8491
toml (0.1.2)
8592
parslet (~> 1.5.0)
8693
travis (1.7.4)
@@ -96,6 +103,10 @@ GEM
96103
typhoeus (~> 0.6, >= 0.6.8)
97104
typhoeus (0.6.9)
98105
ethon (>= 0.7.1)
106+
validate-website (0.9.5)
107+
multipart_body (~> 0.2)
108+
paint (~> 0.8)
109+
spidr (~> 0.4)
99110
websocket (1.2.1)
100111
yajl-ruby (1.1.0)
101112

@@ -109,4 +120,6 @@ DEPENDENCIES
109120
rack-protection
110121
rack-rewrite
111122
rake (~> 10.0)
123+
spidr (~> 0.4)
112124
travis
125+
validate-website (~> 0.9)

‎Rakefile‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,23 @@ task :release do
5555
sh "git push origin gh-pages"
5656
end
5757
end
58+
59+
namespace :check do
60+
desc 'validate _site markup with validate-website'
61+
task :markup => :generate do
62+
options = Jekyll.configuration({'auto' => false, 'server' => false})
63+
Dir.chdir('_site') do
64+
system("validate-website-static --site '#{options['url']}/' --quiet")
65+
exit($?.exitstatus)
66+
end
67+
end
68+
desc "Checks for broken links on http://0.0.0.0:4000/"
69+
task :links do
70+
require 'spidr'
71+
Spidr.start_at('http://0.0.0.0:4000/') do |agent|
72+
agent.every_failed_url do |url|
73+
puts "Broken link #{url} found."
74+
end
75+
end
76+
end
77+
end

‎index.md‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ title: 루비 프로그래밍 언어 한글 문서
1010
## 루비(Ruby) 프로그래밍 언어
1111
{: #ruby}
1212

13-
- [(번역) 루비 : 루비 20분 가이드](https://www.ruby-lang.org/ko/documentation/quickstart/)
13+
- [(번역) 루비 20분 가이드](https://www.ruby-lang.org/ko/documentation/quickstart/)
1414
- [(번역) 다른 언어에서 루비로](https://www.ruby-lang.org/ko/documentation/ruby-from-other-languages/)
1515
- [생활코딩 : 루비](http://opentutorials.org/course/742/4554)
1616
- [Bigmatch : 맨붕없이 RVM과 루비 설치하기](http://bigmatch.i-um.net/2013/12/%EB%A9%98%EB%B6%95%EC%97%86%EC%9D%B4-rvm%EA%B3%BC-%EB%A3%A8%EB%B9%84-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0/)
1717
- [블로터 : ‘루비’의 아빠, 마츠모토 유키히로](http://www.bloter.net/archives/184564)
18-
- [en-light-en-ment : Ruby의 철학에 관한 마츠모토 유키히로의 인터뷰 Part 1](http://joonjeong.wordpress.com/2013/08/15/ruby%EC%9D%98-%EC%B2%A0%ED%95%99%EC%97%90-%EA%B4%80%ED%95%9C-%EB%A7%88%EC%B8%A0%EB%AA%A8%ED%86%A0-%EC%9C%A0%ED%82%A4%ED%9E%88%EB%A1%9C%EC%9D%98-%EC%9D%B8%ED%84%B0%EB%B7%B0-part-1/)
18+
- [(번역) JOONJEONG : Ruby의 철학에 관한 마츠모토 유키히로의 인터뷰 Part 1](http://we.weirdmeetup.com/ruby의-철학에-관한-마츠모토-유키히로의-인터뷰-part-1/)
1919
- [Fl0wk27er : Ruby, Rails 스터디 이전 발표 자료](http://flowkater.github.io/blog/2013/05/29/be-a-rubyist-1-2/)
2020
- [Fl0wk27er : Ruby 와 Rails 배우고 싶을때](http://flowkater.github.io/blog/2013/08/07/ruby-and-rails-learning-resource/)
2121
- [Joinc : 루비 언어 튜토리얼](http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Ruby/Tutorial01)
@@ -29,7 +29,7 @@ title: 루비 프로그래밍 언어 한글 문서
2929

3030
- (번역) 레일즈 가이드 [RubyKr](http://rorlab.org/rg/index.html) [ROR Lab](http://rubykr.github.io/rails_guides/)
3131
- [(번역) Fl0wk27er : 루비 온 레일스 아키텍처 디자인](http://flowkater.github.io/blog/2013/08/12/rails-architecture/)
32-
- [Remotty Team Blog : AngularJS + Rails 프로젝트 구성](http://blog.remotty.com/blog/2014/02/01/angularjs-plus-rails-peurojegteu-guseong/)
32+
- [subicura : AngularJS + Rails 프로젝트 구성](http://blog.remotty.com/blog/2014/02/01/angularjs-plus-rails-peurojegteu-guseong/)
3333
- [rorlab : 초보자를 위한 레일스 가이드북 1.0.1](https://www.gitbook.io/book/rorlab/railsguidebook)
3434
- [Lucius Choi : Devise 젬 파헤치기](https://www.gitbook.io/book/luciuschoi/exploring_devise)
3535
- [Lucius Choi : FoundBlog 따라하기](https://www.gitbook.io/book/luciuschoi/foundblog)
@@ -40,7 +40,7 @@ title: 루비 프로그래밍 언어 한글 문서
4040
- [(번역) 지킬(jekyll)](http://svperstarz.github.io/jekyll-docs-ko/)
4141
- [(번역) 시나트라(sinatra)](http://www.sinatrarb.com/intro-ko.html)
4242
- [(번역) 번들러(Bundler)](http://ruby-korea.github.io/bundler-site/)
43-
- [(번역) OKAERI PROGRAMMER : Padrino Blog Tutorial](http://blog.baenlee.com/blog/2013/12/30/bundle-exec-padrino-g-project/)
43+
- [(번역) gosoochaja : Padrino Blog Tutorial](http://blog.baenlee.com/blog/2013/12/30/bundle-exec-padrino-g-project/)
4444

4545
## 테스트
4646
{: #testing}
@@ -77,11 +77,9 @@ title: 루비 프로그래밍 언어 한글 문서
7777
{: #blog}
7878

7979
- [HappyRails](http://happyrails.rorlab.org/ko)
80-
- [en-light-en-ment](http://joonjeong.wordpress.com/)
8180
- [Remotty Tech Blog](http://blog.remotty.com)
82-
- [Rails Maniac](http://railsmaniac.tumblr.com/)
8381
- [ROR Lab.](http://rorlab.org/)
84-
- [Dev.Study.Archive](http://dev-study.github.io/pages/presentations.html)
82+
- [이상한 모임](http://we.weirdmeetup.com/tag/ruby/)
8583

8684
## 책
8785
{: #book}

0 commit comments

Comments
 (0)