Update Lua documentation (5.3.4, 5.2.4, 5.1.5)

pull/656/head
Thibaut Courouble 8 years ago
parent 85fffdc242
commit 05f2a6628c

@ -355,7 +355,7 @@ credits = [
'https://raw.githubusercontent.com/lodash/lodash/master/LICENSE.txt' 'https://raw.githubusercontent.com/lodash/lodash/master/LICENSE.txt'
], [ ], [
'Lua', 'Lua',
'19942015 Lua.org, PUC-Rio', '19942017 Lua.org, PUC-Rio',
'MIT', 'MIT',
'http://www.lua.org/license.html' 'http://www.lua.org/license.html'
], [ ], [

@ -1,6 +0,0 @@
#= require views/pages/base
class app.views.LuaPage extends app.views.BasePage
prepare: ->
@highlightCode @findAllByTag('pre'), 'lua'
return

@ -39,6 +39,7 @@ app.views.KotlinPage =
app.views.LaravelPage = app.views.LaravelPage =
app.views.LodashPage = app.views.LodashPage =
app.views.LovePage = app.views.LovePage =
app.views.LuaPage =
app.views.MarionettePage = app.views.MarionettePage =
app.views.MdnPage = app.views.MdnPage =
app.views.MeteorPage = app.views.MeteorPage =

@ -14,6 +14,10 @@ module Docs
node.before(node.children).remove node.before(node.children).remove
end end
css('b > code').each do |node|
node.parent.before(node.parent.children).remove
end
3.times { at_css('h1[id="1"]').previous_element.remove } 3.times { at_css('h1[id="1"]').previous_element.remove }
css('.apii').each do |node| css('.apii').each do |node|
@ -22,6 +26,7 @@ module Docs
css('pre').each do |node| css('pre').each do |node|
node.content = node.content.remove(/\A\s*\n/).rstrip.strip_heredoc node.content = node.content.remove(/\A\s*\n/).rstrip.strip_heredoc
node['data-language'] = 'lua'
end end
doc doc

@ -8,22 +8,22 @@ module Docs
options[:skip_links] = true options[:skip_links] = true
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 1994&ndash;2015 Lua.org, PUC-Rio.<br> &copy; 1994&ndash;2017 Lua.org, PUC-Rio.<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML
version '5.3' do version '5.3' do
self.release = '5.3' self.release = '5.3.4'
self.base_url = 'https://www.lua.org/manual/5.3/' self.base_url = 'https://www.lua.org/manual/5.3/'
end end
version '5.2' do version '5.2' do
self.release = '5.2' self.release = '5.2.4'
self.base_url = 'https://www.lua.org/manual/5.2/' self.base_url = 'https://www.lua.org/manual/5.2/'
end end
version '5.1' do version '5.1' do
self.release = '5.1' self.release = '5.1.5'
self.base_url = 'https://www.lua.org/manual/5.1/' self.base_url = 'https://www.lua.org/manual/5.1/'
end end
end end

Loading…
Cancel
Save