File tree Expand file tree Collapse file tree 5 files changed +44
-5
lines changed
Expand file tree Collapse file tree 5 files changed +44
-5
lines changed Original file line number Diff line number Diff line change 66 - 2.3.0
77
88install :
9- - gem install mdl
9+ - bundle install
1010
1111script :
12- - mdl --style 'markdown.rb' README.md
13- - mdl --style 'markdown.rb' CONTRIBUTING.md
12+ - bundle exec rake test
Original file line number Diff line number Diff line change @@ -20,10 +20,12 @@ formatting/markup/style rules so that the style remains consistent:
2020 alphabetical order at the end of the document, and capitalize the first word
2121 of the link label.
2222
23- Install [ Markdownlint] to check your changes, and run :
23+ Use Ruby and [ Markdownlint] to check your changes:
2424
2525``` sh
26- mdl --style ' markdown.rb' README.md
26+ gem install bundler
27+ bundle install
28+ bundle exec rake test
2729```
2830
2931** IMPORTANT** : By submitting a patch, you agree that your work will be
Original file line number Diff line number Diff line change 1+ source "https://rubygems.org"
2+
3+ gem "mdl"
4+ gem "rake"
Original file line number Diff line number Diff line change 1+ GEM
2+ remote: https://rubygems.org/
3+ specs:
4+ kramdown (1.13.2 )
5+ mdl (0.4.0 )
6+ kramdown (~> 1.12 , >= 1.12.0 )
7+ mixlib-cli (~> 1.7 , >= 1.7.0 )
8+ mixlib-config (~> 2.2 , >= 2.2.1 )
9+ mixlib-cli (1.7.0 )
10+ mixlib-config (2.2.4 )
11+ rake (12.0.0 )
12+
13+ PLATFORMS
14+ ruby
15+
16+ DEPENDENCIES
17+ mdl
18+ rake
19+
20+ BUNDLED WITH
21+ 1.14.5
Original file line number Diff line number Diff line change 1+ task :test do
2+ exit_code = 0
3+ files = [ "README.md" , "CONTRIBUTING.md" ]
4+ files . each do |file |
5+ begin
6+ sh "bundle exec mdl --style 'markdown.rb' #{ file } "
7+ rescue Exception => ex
8+ exit_code = 1
9+ end
10+ end
11+
12+ exit exit_code
13+ end
You can’t perform that action at this time.
0 commit comments