Pārlūkot izejas kodu

Finish Handlebars.js scraper

Thibaut Courouble 7 gadi atpakaļ
vecāks
revīzija
24abe4c9d9

BIN
assets/images/docs-2.png


BIN
assets/images/docs-2@2x.png


+ 1 - 1
assets/javascripts/news.json

@@ -1,7 +1,7 @@
 [
   [
     "2018-09-23",
-    "New documentation: <a href=\"/puppeteer/\">Puppeteer</a>"
+    "New documentations: <a href=\"/puppeteer/\">Puppeteer</a> and <a href=\"/handlebars/\">Handlebars.js</a>"
   ], [
     "2018-08-12",
     "New documentations: <a href=\"/dart/\">Dart</a> and <a href=\"/qt/\">Qt</a>"

+ 1 - 0
assets/stylesheets/global/_icons.scss

@@ -179,3 +179,4 @@
 ._icon-dart:before          { background-position: -7rem -3rem; @extend %doc-icon-2; }
 ._icon-qt:before            { background-position: -8rem -3rem; @extend %doc-icon-2; }
 ._icon-puppeteer:before     { background-position: -9rem -3rem; @extend %doc-icon-2; }
+._icon-handlebars:before    { background-position: 0 -4rem; @extend %doc-icon-2; @extend %darkIconFix !optional; }

+ 0 - 1
assets/stylesheets/pages/_simple.scss

@@ -27,7 +27,6 @@
 ._flow,
 ._gnu,
 ._grunt,
-._handlebars,
 ._haxe,
 ._immutable,
 ._influxdata,

+ 3 - 3
lib/docs/scrapers/handlebars.rb

@@ -2,8 +2,8 @@ module Docs
   class Handlebars < UrlScraper
     self.name = 'Handlebars.js'
     self.slug = 'handlebars'
-    self.type = 'handlebars'
-    self.release = '4.0.11'
+    self.type = 'simple'
+    self.release = '4.0.12'
     self.base_url = 'https://handlebarsjs.com/'
     self.links = {
       home: 'https://handlebarsjs.com/',
@@ -16,7 +16,7 @@ module Docs
     options[:root_title] = 'Handlebars.js'
 
     options[:attribution] = <<-HTML
-      &copy; 2011-2017 by Yehuda Katz<br>
+      &copy; 2011&ndash;2017 by Yehuda Katz<br>
       Licensed under the MIT License.
     HTML
   end

BIN
public/icons/docs-2.pxm


BIN
public/icons/docs-2@2x.pxm


BIN
public/icons/docs/handlebars/16.png


BIN
public/icons/docs/handlebars/16@2x.png