Unified · Split
| @@ -355,7 +355,7 @@ credits = [ · 354 unmodified lines | |||
| 355 | 'https://raw.githubusercontent.com/lodash/lodash/master/LICENSE.txt' | 355 | 'https://raw.githubusercontent.com/lodash/lodash/master/LICENSE.txt' |
| 356 | ], [ | 356 | ], [ |
| 357 | 'Lua', | 357 | 'Lua', |
| 358 | '1994–2015 Lua.org, PUC-Rio', | 358 | '1994–2017 Lua.org, PUC-Rio', |
| 359 | 'MIT', | 359 | 'MIT', |
| 360 | 'http://www.lua.org/license.html' | 360 | 'http://www.lua.org/license.html' |
| 361 | ], [ | 361 | ], [ |
| @@ -1,6 +0,0 @@ | |||
| 1 | #= require views/pages/base | ||
| 2 | |||
| 3 | class app.views.LuaPage extends app.views.BasePage | ||
| 4 | prepare: -> | ||
| 5 | @highlightCode @findAllByTag('pre'), 'lua' | ||
| 6 | return | ||
| @@ -39,6 +39,7 @@ app.views.KotlinPage = · 38 unmodified lines | |||
| 39 | app.views.LaravelPage = | 39 | app.views.LaravelPage = |
| 40 | app.views.LodashPage = | 40 | app.views.LodashPage = |
| 41 | app.views.LovePage = | 41 | app.views.LovePage = |
| 42 | app.views.LuaPage = | ||
| 42 | app.views.MarionettePage = | 43 | app.views.MarionettePage = |
| 43 | app.views.MdnPage = | 44 | app.views.MdnPage = |
| 44 | app.views.MeteorPage = | 45 | app.views.MeteorPage = |
| @@ -14,6 +14,10 @@ module Docs · 13 unmodified lines | |||
| 14 | node.before(node.children).remove | 14 | node.before(node.children).remove |
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | css('b > code').each do |node| | ||
| 18 | node.parent.before(node.parent.children).remove | ||
| 19 | end | ||
| 20 | |||
| 17 | 3.times { at_css('h1[id="1"]').previous_element.remove } | 21 | 3.times { at_css('h1[id="1"]').previous_element.remove } |
| 18 | 22 | ||
| 19 | css('.apii').each do |node| | 23 | css('.apii').each do |node| |
| @@ -22,6 +26,7 @@ module Docs · 2 unmodified lines | |||
| 22 | 26 | ||
| 23 | css('pre').each do |node| | 27 | css('pre').each do |node| |
| 24 | node.content = node.content.remove(/\A\s*\n/).rstrip.strip_heredoc | 28 | node.content = node.content.remove(/\A\s*\n/).rstrip.strip_heredoc |
| 29 | node['data-language'] = 'lua' | ||
| 25 | end | 30 | end |
| 26 | 31 | ||
| 27 | doc | 32 | doc |
| @@ -8,22 +8,22 @@ module Docs · 7 unmodified lines | |||
| 8 | options[:skip_links] = true | 8 | options[:skip_links] = true |
| 9 | 9 | ||
| 10 | options[:attribution] = <<-HTML | 10 | options[:attribution] = <<-HTML |
| 11 | © 1994–2015 Lua.org, PUC-Rio.<br> | 11 | © 1994–2017 Lua.org, PUC-Rio.<br> |
| 12 | Licensed under the MIT License. | 12 | Licensed under the MIT License. |
| 13 | HTML | 13 | HTML |
| 14 | 14 | ||
| 15 | version '5.3' do | 15 | version '5.3' do |
| 16 | self.release = '5.3' | 16 | self.release = '5.3.4' |
| 17 | self.base_url = 'https://www.lua.org/manual/5.3/' | 17 | self.base_url = 'https://www.lua.org/manual/5.3/' |
| 18 | end | 18 | end |
| 19 | 19 | ||
| 20 | version '5.2' do | 20 | version '5.2' do |
| 21 | self.release = '5.2' | 21 | self.release = '5.2.4' |
| 22 | self.base_url = 'https://www.lua.org/manual/5.2/' | 22 | self.base_url = 'https://www.lua.org/manual/5.2/' |
| 23 | end | 23 | end |
| 24 | 24 | ||
| 25 | version '5.1' do | 25 | version '5.1' do |
| 26 | self.release = '5.1' | 26 | self.release = '5.1.5' |
| 27 | self.base_url = 'https://www.lua.org/manual/5.1/' | 27 | self.base_url = 'https://www.lua.org/manual/5.1/' |
| 28 | end | 28 | end |
| 29 | end | 29 | end |