vuex.rb 764 B

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