1
0

vue.rb 856 B

12345678910111213141516171819202122232425262728293031323334
  1. module Docs
  2. class Vue < UrlScraper
  3. self.name = 'Vue.js'
  4. self.slug = 'vue'
  5. self.type = 'vue'
  6. self.links = {
  7. home: 'https://vuejs.org/',
  8. code: 'https://github.com/vuejs/vue'
  9. }
  10. html_filters.push 'vue/clean_html', 'vue/entries'
  11. options[:only_patterns] = [/guide\//, /api\//]
  12. options[:attribution] = <<-HTML
  13. &copy; 2013&ndash;2016 Evan You, Vue.js contributors<br>
  14. Licensed under the MIT License.
  15. HTML
  16. version '2' do
  17. self.release = '2.1.8'
  18. self.base_url = 'https://vuejs.org/v2/'
  19. self.root_path = 'guide/index.html'
  20. self.initial_paths = %w(api/index.html)
  21. end
  22. version '1' do
  23. self.release = '1.0.28'
  24. self.base_url = 'https://v1.vuejs.org'
  25. self.root_path = '/guide/index.html'
  26. self.initial_paths = %w(/api/index.html)
  27. end
  28. end
  29. end