1
0
Эх сурвалжийг харах

Update Phaser documentation (2.4.7)

Thibaut Courouble 9 жил өмнө
parent
commit
85623c8001

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -352,7 +352,7 @@ credits = [
     'https://docs.phalconphp.com/en/latest/reference/license.html'
   ], [
     'Phaser',
-    '2015 Richard Davey, Photon Storm Ltd.',
+    '2016 Richard Davey, Photon Storm Ltd.',
     'MIT',
     'https://raw.githubusercontent.com/photonstorm/phaser/master/license.txt'
   ], [

+ 0 - 1
assets/javascripts/views/pages/javascript.coffee

@@ -23,7 +23,6 @@ app.views.MarionettePage =
 app.views.MochaPage =
 app.views.ModernizrPage =
 app.views.MongoosePage =
-app.views.PhaserPage =
 app.views.SinonPage =
 app.views.JavascriptPage
 

+ 1 - 0
assets/javascripts/views/pages/simple.coffee

@@ -12,6 +12,7 @@ app.views.MeteorPage =
 app.views.MomentPage =
 app.views.NodePage =
 app.views.PerlPage =
+app.views.PhaserPage =
 app.views.PostgresPage =
 app.views.RamdaPage =
 app.views.ReactPage =

+ 4 - 0
lib/docs/filters/phaser/clean_html.rb

@@ -46,6 +46,10 @@ module Docs
           node.before(node.children).remove
         end
 
+        css('pre').each do |node|
+          node['data-language'] = 'javascript'
+        end
+
         doc
       end
     end

+ 2 - 2
lib/docs/scrapers/phaser.rb

@@ -1,7 +1,7 @@
 module Docs
   class Phaser < UrlScraper
     self.type = 'phaser'
-    self.release = '2.4.6'
+    self.release = '2.4.7'
     self.base_url = "http://phaser.io/docs/#{release}"
     self.root_path = '/index'
     self.links = {
@@ -22,7 +22,7 @@ module Docs
       /PIXI.WebGLStencilManager.html)
 
     options[:attribution] = <<-HTML
-      &copy; 2015 Richard Davey, Photon Storm Ltd.<br>
+      &copy; 2016 Richard Davey, Photon Storm Ltd.<br>
       Licensed under the MIT License.
     HTML
   end