1
0

vuex.rb 614 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Vuex < UrlScraper
  3. self.type = 'simple'
  4. self.release = '3.1.1'
  5. self.base_url = 'https://vuex.vuejs.org/'
  6. self.links = {
  7. home: 'https://vuex.vuejs.org',
  8. code: 'https://github.com/vuejs/vuex'
  9. }
  10. html_filters.push 'vuex/entries', 'vuex/clean_html'
  11. options[:skip_patterns] = [
  12. # Other languages
  13. /^(zh|ja|ru|kr|fr|ptbr)\//,
  14. ]
  15. options[:attribution] = <<-HTML
  16. &copy; 2015&ndash;present Evan You<br>
  17. Licensed under the MIT License.
  18. HTML
  19. def get_latest_version(opts)
  20. get_npm_version('vuex', opts)
  21. end
  22. end
  23. end