1
0

vue.rb 764 B

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