1
0

vue.rb 953 B

123456789101112131415161718192021222324252627282930313233343536
  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/entries', 'vue/clean_html'
  11. options[:only_patterns] = [/guide\//, /api\//]
  12. options[:skip] = %w(guide/team.html)
  13. options[:replace_paths] = { 'guide/' => 'guide/index.html' }
  14. options[:attribution] = <<-HTML
  15. &copy; 2013&ndash;2017 Evan You, Vue.js contributors<br>
  16. Licensed under the MIT License.
  17. HTML
  18. version '2' do
  19. self.release = '2.5.13'
  20. self.base_url = 'https://vuejs.org/v2/'
  21. self.root_path = 'guide/index.html'
  22. self.initial_paths = %w(api/)
  23. end
  24. version '1' do
  25. self.release = '1.0.28'
  26. self.base_url = 'https://v1.vuejs.org'
  27. self.root_path = '/guide/index.html'
  28. self.initial_paths = %w(/api/index.html)
  29. end
  30. end
  31. end