Forráskód Böngészése

Add Minitest documentation (5.5.1)

Thibaut 10 éve
szülő
commit
92d3fd5d0f

+ 5 - 1
assets/javascripts/news.json

@@ -1,5 +1,9 @@
 [
-  [ "2015-02-16",
+  [
+    "2015-02-22",
+    "New <a href=\"/minitest/\">Minitest</a> documentation"
+  ], [
+    "2015-02-16",
     "The sidebar is now resizable (drag & drop)."
   ], [
     "2015-02-15",

+ 5 - 0
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -225,6 +225,11 @@ credits = [
     '2015 MaxCDN',
     'MIT',
     'https://raw.githubusercontent.com/MaxCDN/api-docs/master/LICENSE'
+  ], [
+    'Minitest',
+    'Ryan Davis, seattle.rb',
+    'MIT',
+    'https://raw.githubusercontent.com/seattlerb/minitest/master/README.txt'
   ], [
     'Modernizr',
     '2009-2014 Modernizr',

+ 4 - 3
assets/stylesheets/global/_icons.scss

@@ -39,9 +39,10 @@
 ._icon-jquerymobile:before  { background-position: -5rem -2rem; }
 ._icon-lodash:before        { background-position: -6rem -2rem; }
 ._icon-php:before           { background-position: -7rem -2rem; }
-._icon-ruby:before          { background-position: -8rem -2rem; }
+._icon-ruby:before,
+._icon-minitest:before      { background-position: -8rem -2rem; }
 ._icon-rails:before         { background-position: -9rem -2rem; }
-._icon-python:before        { background-position: 0 -3rem; }
+._icon-python:before,
 ._icon-python2:before       { background-position: 0 -3rem; }
 ._icon-git:before           { background-position: -1rem -3rem; }
 ._icon-redis:before         { background-position: -2rem -3rem; }
@@ -51,7 +52,7 @@
 ._icon-moment:before        { background-position: -6rem -3rem; }
 ._icon-c:before             { background-position: -7rem -3rem; }
 %icon-path                  { background-position: -8rem -3rem; }
-._icon-yii:before           { background-position: -9rem -3rem; }
+._icon-yii:before,
 ._icon-yii1:before          { background-position: -9rem -3rem; }
 ._icon-cpp:before           { background-position: 0 -4rem; }
 ._icon-go:before            { background-position: -1rem -4rem; }

+ 11 - 0
lib/docs/filters/minitest/entries.rb

@@ -0,0 +1,11 @@
+module Docs
+  class Minitest
+    class EntriesFilter < Docs::Rdoc::EntriesFilter
+      def get_type
+        type = name.dup
+        type.remove! %r{#.+\z}
+        type.split('::')[0..1].join('::')
+      end
+    end
+  end
+end

+ 18 - 0
lib/docs/scrapers/rdoc/minitest.rb

@@ -0,0 +1,18 @@
+module Docs
+  class Minitest < Rdoc
+    self.name = 'Ruby / Minitest'
+    self.slug = 'minitest'
+    self.version = '5.5.1'
+    self.dir = '/Users/Thibaut/DevDocs/Docs/RDoc/Minitest'
+
+    html_filters.replace 'rdoc/entries', 'minitest/entries'
+
+    options[:root_title] = 'Minitest'
+    options[:only_patterns] = [/\AMinitest/]
+
+    options[:attribution] = <<-HTML
+      &copy; Ryan Davis, seattle.rb<br>
+      Licensed under the MIT License.
+    HTML
+  end
+end

+ 2 - 0
lib/docs/scrapers/rdoc/rdoc.rb

@@ -10,6 +10,8 @@ module Docs
     options[:title] = false
     options[:skip] = %w(index.html)
     options[:skip_patterns] = [
+      /history/i,
+      /rakefile/i,
       /changelog/i,
       /readme/i,
       /news/i,