mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
739 B
33 lines
739 B
9 years ago
|
module Docs
|
||
|
class Fortran < FileScraper
|
||
|
self.name = 'GNU Fortran'
|
||
|
self.slug = 'fortran'
|
||
|
self.type = 'fortran'
|
||
|
self.release = '5.3.0'
|
||
|
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
|
||
|
self.dir = ''
|
||
|
self.root_path = 'index.html'
|
||
|
|
||
|
self.links = {
|
||
|
home: 'https://gcc.gnu.org/fortran/'
|
||
|
}
|
||
|
|
||
|
html_filters.push 'fortran/clean_html', 'fortran/entries'
|
||
|
|
||
|
options[:skip_patterns] = [
|
||
|
/Funding/,
|
||
|
/Projects/,
|
||
|
/Copying/,
|
||
|
/License/,
|
||
|
/Proposed/,
|
||
|
/Contribut/,
|
||
|
/Index/
|
||
|
]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© Free Software Foundation<br>
|
||
|
Licensed under the GNU Free Documentation License version 1.3.
|
||
|
HTML
|
||
|
end
|
||
|
end
|