diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index cf9940f2..d902ab42 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -355,7 +355,7 @@ credits = [
'https://raw.githubusercontent.com/lodash/lodash/master/LICENSE.txt'
], [
'Lua',
- '1994–2015 Lua.org, PUC-Rio',
+ '1994–2017 Lua.org, PUC-Rio',
'MIT',
'http://www.lua.org/license.html'
], [
diff --git a/assets/javascripts/views/pages/lua.coffee b/assets/javascripts/views/pages/lua.coffee
deleted file mode 100644
index b42bfcc6..00000000
--- a/assets/javascripts/views/pages/lua.coffee
+++ /dev/null
@@ -1,6 +0,0 @@
-#= require views/pages/base
-
-class app.views.LuaPage extends app.views.BasePage
- prepare: ->
- @highlightCode @findAllByTag('pre'), 'lua'
- return
diff --git a/assets/javascripts/views/pages/simple.coffee b/assets/javascripts/views/pages/simple.coffee
index f1405f55..639e0871 100644
--- a/assets/javascripts/views/pages/simple.coffee
+++ b/assets/javascripts/views/pages/simple.coffee
@@ -39,6 +39,7 @@ app.views.KotlinPage =
app.views.LaravelPage =
app.views.LodashPage =
app.views.LovePage =
+app.views.LuaPage =
app.views.MarionettePage =
app.views.MdnPage =
app.views.MeteorPage =
diff --git a/lib/docs/filters/lua/clean_html.rb b/lib/docs/filters/lua/clean_html.rb
index d6be3d12..2c1ad186 100644
--- a/lib/docs/filters/lua/clean_html.rb
+++ b/lib/docs/filters/lua/clean_html.rb
@@ -14,6 +14,10 @@ module Docs
node.before(node.children).remove
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 }
css('.apii').each do |node|
@@ -22,6 +26,7 @@ module Docs
css('pre').each do |node|
node.content = node.content.remove(/\A\s*\n/).rstrip.strip_heredoc
+ node['data-language'] = 'lua'
end
doc
diff --git a/lib/docs/scrapers/lua.rb b/lib/docs/scrapers/lua.rb
index 6a6b9385..40a5c007 100644
--- a/lib/docs/scrapers/lua.rb
+++ b/lib/docs/scrapers/lua.rb
@@ -8,22 +8,22 @@ module Docs
options[:skip_links] = true
options[:attribution] = <<-HTML
- © 1994–2015 Lua.org, PUC-Rio.
+ © 1994–2017 Lua.org, PUC-Rio.
Licensed under the MIT License.
HTML
version '5.3' do
- self.release = '5.3'
+ self.release = '5.3.4'
self.base_url = 'https://www.lua.org/manual/5.3/'
end
version '5.2' do
- self.release = '5.2'
+ self.release = '5.2.4'
self.base_url = 'https://www.lua.org/manual/5.2/'
end
version '5.1' do
- self.release = '5.1'
+ self.release = '5.1.5'
self.base_url = 'https://www.lua.org/manual/5.1/'
end
end