Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 111 KiB |
@ -0,0 +1,30 @@
|
||||
module Docs
|
||||
class Gnu < FileScraper
|
||||
self.type = 'gnu'
|
||||
self.root_path = 'index.html'
|
||||
self.abstract = 'true'
|
||||
|
||||
html_filters.push 'gnu/clean_html', 'gnu/entries'
|
||||
|
||||
options[:skip] = %w(
|
||||
GNU-Project.html
|
||||
Service.html
|
||||
)
|
||||
|
||||
options[:skip_patterns] = [
|
||||
/Funding/,
|
||||
/Projects/,
|
||||
/Copying/,
|
||||
/License/,
|
||||
/Proposed/,
|
||||
/Contribut/,
|
||||
/Index/,
|
||||
/\ABug/
|
||||
]
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
© Free Software Foundation<br>
|
||||
Licensed under the GNU Free Documentation License, Version 1.3.
|
||||
HTML
|
||||
end
|
||||
end
|
@ -0,0 +1,78 @@
|
||||
module Docs
|
||||
class Gcc < Gnu
|
||||
self.name = 'GCC'
|
||||
self.slug = 'gcc'
|
||||
self.links = {
|
||||
home: 'https://gcc.gnu.org/'
|
||||
}
|
||||
|
||||
html_filters.push 'title'
|
||||
|
||||
options[:root_title] = 'Using the GNU Compiler Collection (GCC)'
|
||||
options[:title] = false
|
||||
|
||||
options[:replace_paths] = {
|
||||
'AssemblerTemplate.html' => 'Extended-Asm.html',
|
||||
'AVR-Named-Address-Spaces.html' => 'Named-Address-Spaces.html',
|
||||
'AVR-Variable-Attributes.html' => 'Variable-Attributes.html',
|
||||
'Clobbers.html' => 'Extended-Asm.html',
|
||||
'dashMF.html' => 'Preprocessor-Options.html',
|
||||
'GotoLabels.html' => 'Extended-Asm.html',
|
||||
'InputOperands.html' => 'Extended-Asm.html',
|
||||
'OutputOperands.html' => 'Extended-Asm.html',
|
||||
'PowerPC-Type-Attributes.html' => 'Type-Attributes.html',
|
||||
'SPU-Type-Attributes.html' => 'Type-Attributes.html',
|
||||
'Type_002dpunning.html' => 'Optimize-Options.html',
|
||||
'Volatile.html' => 'Extended-Asm.html',
|
||||
'Wtrigraphs.html' => 'Preprocessor-Options.html',
|
||||
'x86-Type-Attributes.html' => 'Type-Attributes.html',
|
||||
'x86-Variable-Attributes.html' => 'Variable-Attributes.html',
|
||||
'x86floatingpointasmoperands.html' => 'Extended-Asm.html',
|
||||
'x86Operandmodifiers.html' => 'Extended-Asm.html',
|
||||
|
||||
'Example-of-asm-with-clobbered-asm-reg.html' => 'Extended-Asm.html',
|
||||
'Extended-asm-with-goto.html' => 'Extended-Asm.html',
|
||||
'fdollars_002din_002didentifiers.html' => 'Preprocessor-Options.html',
|
||||
'i386-Type-Attributes.html' => 'Variable-Attributes.html',
|
||||
'i386-Variable-Attributes.html' => 'Variable-Attributes.html'
|
||||
}
|
||||
|
||||
CPP_PATHS = {
|
||||
'dashMF.html' => 'Invocation.html',
|
||||
'fdollars_002din_002didentifiers.html' => 'Invocation.html',
|
||||
'Identifier-characters.html' => 'Implementation_002ddefined-behavior.html',
|
||||
'trigraphs.html' => 'Initial-processing.html',
|
||||
'Wtrigraphs.html' => 'Invocation.html'
|
||||
}
|
||||
|
||||
version '5' do
|
||||
self.release = '5.3.0'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/gcc5'
|
||||
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
|
||||
end
|
||||
|
||||
version '5 CPP' do
|
||||
self.release = '5.3.0'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/gcpp5'
|
||||
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
|
||||
|
||||
options[:root_title] = false
|
||||
options[:replace_paths] = CPP_PATHS
|
||||
end
|
||||
|
||||
version '4' do
|
||||
self.release = '4.9.3'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/gcc4'
|
||||
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gcc/"
|
||||
end
|
||||
|
||||
version '4 CPP' do
|
||||
self.release = '4.9.3'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/gcpp4'
|
||||
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/cpp/"
|
||||
|
||||
options[:root_title] = false
|
||||
options[:replace_paths] = CPP_PATHS
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,21 @@
|
||||
module Docs
|
||||
class GnuFortran < Gnu
|
||||
self.name = 'GNU Fortran'
|
||||
self.slug = 'gnu_fortran'
|
||||
self.links = {
|
||||
home: 'https://gcc.gnu.org/fortran/'
|
||||
}
|
||||
|
||||
version '5' do
|
||||
self.release = '5.3.0'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/gfortran5'
|
||||
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
|
||||
end
|
||||
|
||||
version '4' do
|
||||
self.release = '4.9.3'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/gfortran4'
|
||||
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
|
||||
end
|
||||
end
|
||||
end
|
@ -1,40 +0,0 @@
|
||||
module Docs
|
||||
class GnuFortran < FileScraper
|
||||
self.name = 'GNU Fortran'
|
||||
self.slug = 'gnu_fortran'
|
||||
self.type = 'gnu_fortran'
|
||||
self.dir = '/Users/Thibaut/DevDocs/Docs/gfortran'
|
||||
self.root_path = 'index.html'
|
||||
|
||||
self.links = {
|
||||
home: 'https://gcc.gnu.org/fortran/'
|
||||
}
|
||||
|
||||
html_filters.push 'gnu_fortran/clean_html', 'gnu_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
|
||||
|
||||
version '5' do
|
||||
self.release = '5.3.0'
|
||||
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
|
||||
end
|
||||
|
||||
version '4' do
|
||||
self.release = '4.9.3'
|
||||
self.base_url = "https://gcc.gnu.org/onlinedocs/gcc-#{release}/gfortran/"
|
||||
end
|
||||
end
|
||||
end
|
After Width: | Height: | Size: 375 B |
After Width: | Height: | Size: 877 B |
After Width: | Height: | Size: 4.0 KiB |