1
0

jekyll.rb 785 B

1234567891011121314151617181920212223242526272829303132
  1. module Docs
  2. class Jekyll < UrlScraper
  3. self.type = 'jekyll'
  4. self.release = '3.7.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[:skip] = %w(sites/ upgrading/)
  14. options[:skip_patterns] = [
  15. /conduct/,
  16. /history/,
  17. /maintaining/,
  18. /contributing/,
  19. ]
  20. options[:replace_paths] = {
  21. '' => 'home/',
  22. '/' => 'home/'
  23. }
  24. options[:attribution] = <<-HTML
  25. &copy; 2008&ndash;2018 Tom Preston-Werner and Jekyll contributors<br>
  26. Licensed under the MIT license.
  27. HTML
  28. end
  29. end