gnu_fortran.rb 964 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. module Docs
  2. class GnuFortran < FileScraper
  3. self.name = 'GNU Fortran'
  4. self.slug = 'gnu_fortran'
  5. self.type = 'gnu_fortran'
  6. self.dir = '/Users/Thibaut/DevDocs/Docs/gfortran'
  7. self.root_path = 'index.html'
  8. self.links = {
  9. home: 'https://gcc.gnu.org/fortran/'
  10. }
  11. html_filters.push 'gnu_fortran/clean_html', 'gnu_fortran/entries'
  12. options[:skip_patterns] = [
  13. /Funding/,
  14. /Projects/,
  15. /Copying/,
  16. /License/,
  17. /Proposed/,
  18. /Contribut/,
  19. /Index/
  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. version '5' do
  26. self.release = '5.3.0'
  27. self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
  28. end
  29. version '4' do
  30. self.release = '4.9.3'
  31. self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
  32. end
  33. end
  34. end