jekyll.rb 841 B

12345678910111213141516171819202122232425262728293031323334
  1. module Docs
  2. class Jekyll < UrlScraper
  3. self.type = 'jekyll'
  4. self.release = '3.6.2'
  5. self.base_url = 'https://jekyllrb.com/docs/'
  6. self.root_path = 'home/'
  7. self.links = {
  8. home: 'https://jekyllrb.com/',
  9. code: 'https://github.com/jekyll/jekyll'
  10. }
  11. html_filters.push 'jekyll/clean_html', 'jekyll/entries'
  12. options[:trailing_slash] = true
  13. options[:container] = 'article'
  14. options[:skip] = [
  15. '',
  16. '/'
  17. ]
  18. options[:skip_patterns] = [
  19. /conduct/,
  20. /history/,
  21. /maintaining/,
  22. /contributing/
  23. ]
  24. options[:attribution] = <<-HTML
  25. &copy; 2008&ndash;2017 Tom Preston-Werner and Jekyll contributors<br />
  26. Licensed under
  27. <a href="https://github.com/jekyll/jekyll/blob/master/LICENSE">
  28. the MIT license
  29. </a>
  30. HTML
  31. end
  32. end