gnu.rb 595 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class Gnu < FileScraper
  3. self.type = 'simple'
  4. self.root_path = 'index.html'
  5. self.abstract = 'true'
  6. html_filters.push 'gnu/clean_html', 'gnu/entries'
  7. options[:skip] = %w(
  8. GNU-Project.html
  9. Service.html
  10. )
  11. options[:skip_patterns] = [
  12. /Funding/,
  13. /Projects/,
  14. /Copying/,
  15. /License/,
  16. /Proposed/,
  17. /Contribut/,
  18. /Index/,
  19. /\ABug/
  20. ]
  21. options[:attribution] = <<-HTML
  22. &copy; Free Software Foundation<br>
  23. Licensed under the GNU Free Documentation License, Version 1.3.
  24. HTML
  25. end
  26. end