Răsfoiți Sursa

Add io.js documentation

Thibaut 10 ani în urmă
părinte
comite
9f67605e9b

BIN
assets/images/icons.png


BIN
assets/images/icons@2x.png


+ 4 - 1
assets/javascripts/news.json

@@ -1,5 +1,8 @@
 [
-  [ "2015-02-08",
+  [ "2015-02-15",
+    "New <a href=\"/iojs/\">io.js</a> documentation"
+  ], [
+    "2015-02-08",
     "New dark theme\nClick the icon in the bottom left corner to activate.\n<a href=\"https://github.com/Thibaut/devdocs/issues\" target=\"_blank\">Feedback</a> welcome :)"
   ], [
     "2015-01-13",

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

@@ -160,6 +160,11 @@ credits = [
     '1999 The Internet Society',
     'Custom',
     'http://www.w3.org/Protocols/rfc2616/rfc2616-sec21.html#sec21'
+  ], [
+    'io.js',
+    'io.js contributors',
+    'MIT',
+    'https://raw.githubusercontent.com/iojs/io.js/v1.x/LICENSE'
   ], [
     'jQuery',
     '2009 Packt Publishing<br>&copy; 2014 jQuery Foundation',

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

@@ -84,3 +84,4 @@
 %icon-check-white           { background-position: -4rem -13rem; }
 %icon-light                 { background-position: 0 -14rem; }
 %icon-light-white           { background-position: -1rem -14rem; }
+._icon-iojs:before          { background-position: -2rem -14rem; }

+ 21 - 0
lib/docs/scrapers/iojs.rb

@@ -0,0 +1,21 @@
+module Docs
+  class Iojs < UrlScraper
+    self.name = 'io.js'
+    self.slug = 'iojs'
+    self.type = 'node'
+    self.version = '1.2.0'
+    self.base_url = 'https://iojs.org/api/'
+
+    html_filters.push 'node/clean_html', 'node/entries', 'title'
+
+    options[:title] = false
+    options[:root_title] = 'io.js'
+    options[:container] = '#apicontent'
+    options[:skip] = %w(index.html all.html documentation.html synopsis.html)
+
+    options[:attribution] = <<-HTML
+      &copy; io.js contributors<br>
+      Licensed under the MIT License.
+    HTML
+  end
+end

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


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


+ 1 - 0
public/icons/docs/iojs/SOURCE

@@ -0,0 +1 @@
+https://iojs.org/