1
0

fortran.rb 739 B

1234567891011121314151617181920212223242526272829303132
  1. module Docs
  2. class Fortran < FileScraper
  3. self.name = 'GNU Fortran'
  4. self.slug = 'fortran'
  5. self.type = 'fortran'
  6. self.release = '5.3.0'
  7. self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
  8. self.dir = ''
  9. self.root_path = 'index.html'
  10. self.links = {
  11. home: 'https://gcc.gnu.org/fortran/'
  12. }
  13. html_filters.push 'fortran/clean_html', 'fortran/entries'
  14. options[:skip_patterns] = [
  15. /Funding/,
  16. /Projects/,
  17. /Copying/,
  18. /License/,
  19. /Proposed/,
  20. /Contribut/,
  21. /Index/
  22. ]
  23. options[:attribution] = <<-HTML
  24. &copy; Free Software Foundation<br>
  25. Licensed under the GNU Free Documentation License version 1.3.
  26. HTML
  27. end
  28. end