nginx_lua_module.rb 1.0 KB

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class NginxLuaModule < Github
  3. self.name = 'nginx / Lua Module'
  4. self.slug = 'nginx_lua_module'
  5. self.release = '0.10.28'
  6. self.base_url = "https://github.com/openresty/lua-nginx-module/blob/v#{self.release}/"
  7. self.root_path = 'README.markdown'
  8. self.links = {
  9. code: 'https://github.com/openresty/lua-nginx-module'
  10. }
  11. html_filters.push 'nginx_lua_module/clean_html', 'nginx_lua_module/entries', 'title'
  12. options[:root_title] = 'ngx_http_lua_module'
  13. options[:container] = '.markdown-body'
  14. options[:max_image_size] = 256_000
  15. options[:attribution] = <<-HTML
  16. &copy; 2009&ndash;2017 Xiaozhe Wang (chaoslawful)<br>
  17. &copy; 2009&ndash;2019 Yichun "agentzh" Zhang (章亦春), OpenResty Inc.<br>
  18. Licensed under the BSD License.
  19. HTML
  20. options[:skip_patterns] = [/\.png/]
  21. def get_latest_version(opts)
  22. tags = get_github_tags('openresty', 'lua-nginx-module', opts)
  23. tag = tags.find {|tag| !tag['name'].include?('rc')}
  24. tag['name'][1..-1]
  25. end
  26. end
  27. end