1
0

lua.rb 666 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class Lua < UrlScraper
  3. self.type = 'lua'
  4. self.root_path = 'manual.html'
  5. html_filters.push 'lua/clean_html', 'lua/entries'
  6. options[:skip_links] = true
  7. options[:attribution] = <<-HTML
  8. &copy; 1994&ndash;2015 Lua.org, PUC-Rio.<br>
  9. Licensed under the MIT License.
  10. HTML
  11. version '5.3' do
  12. self.release = '5.3'
  13. self.base_url = 'https://www.lua.org/manual/5.3/'
  14. end
  15. version '5.2' do
  16. self.release = '5.2'
  17. self.base_url = 'https://www.lua.org/manual/5.2/'
  18. end
  19. version '5.1' do
  20. self.release = '5.1'
  21. self.base_url = 'https://www.lua.org/manual/5.1/'
  22. end
  23. end
  24. end