vue.rb 632 B

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