Skip to content

Commit 2018cd1

Browse files
jdesgatsThibaut
authored andcommitted
Version Lua documentation (5.1, 5.2, 5.3)
1 parent 0efa4c3 commit 2018cd1

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

‎lib/docs/scrapers/lua.rb‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module Docs
22
class Lua < UrlScraper
33
self.type = 'lua'
4-
self.release = '5.3'
5-
self.base_url = 'http://www.lua.org/manual/5.3/'
64
self.root_path = 'manual.html'
75

86
html_filters.push 'lua/clean_html', 'lua/entries'
@@ -13,5 +11,20 @@ class Lua < UrlScraper
1311
&copy; 1994&ndash;2015 Lua.org, PUC-Rio.<br>
1412
Licensed under the MIT License.
1513
HTML
14+
15+
version '5.1' do
16+
self.release = '5.1'
17+
self.base_url = 'http://www.lua.org/manual/5.1/'
18+
end
19+
20+
version '5.2' do
21+
self.release = '5.2'
22+
self.base_url = 'http://www.lua.org/manual/5.2/'
23+
end
24+
25+
version '5.3' do
26+
self.release = '5.3'
27+
self.base_url = 'http://www.lua.org/manual/5.3/'
28+
end
1629
end
1730
end

0 commit comments

Comments
 (0)