Skip to content

Commit 76d651b

Browse files
committed
Merge pull request freeCodeCamp#1150 from fonsp/master
Added Julia base language docs for v0.7 and later
2 parents 40df521 + 690889e commit 76d651b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lib/docs/scrapers/julia.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ class Julia < UrlScraper
55
code: 'https://github.com/JuliaLang/julia'
66
}
77

8-
options[:only_patterns] = [/\Amanual\//, /\Astdlib\//]
98

109
options[:attribution] = <<-HTML
1110
&copy; 2009&ndash;2019 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
@@ -20,6 +19,7 @@ class Julia < UrlScraper
2019
html_filters.push 'julia/entries', 'julia/clean_html'
2120

2221
options[:container] = '#docs'
22+
options[:only_patterns] = [/\Amanual\//, /\Abase\//, /\Astdlib\//]
2323
end
2424

2525
version '1.1' do
@@ -30,6 +30,7 @@ class Julia < UrlScraper
3030
html_filters.push 'julia/entries', 'julia/clean_html'
3131

3232
options[:container] = '#docs'
33+
options[:only_patterns] = [/\Amanual\//, /\Abase\//, /\Astdlib\//]
3334
end
3435

3536
version '1.0' do
@@ -40,6 +41,7 @@ class Julia < UrlScraper
4041
html_filters.push 'julia/entries', 'julia/clean_html'
4142

4243
options[:container] = '#docs'
44+
options[:only_patterns] = [/\Amanual\//, /\Abase\//, /\Astdlib\//]
4345
end
4446

4547
version '0.7' do
@@ -50,6 +52,7 @@ class Julia < UrlScraper
5052
html_filters.push 'julia/entries', 'julia/clean_html'
5153

5254
options[:container] = '#docs'
55+
options[:only_patterns] = [/\Amanual\//, /\Abase\//, /\Astdlib\//]
5356
end
5457

5558
version '0.6' do
@@ -60,6 +63,7 @@ class Julia < UrlScraper
6063
html_filters.push 'julia/entries', 'julia/clean_html'
6164

6265
options[:container] = '#docs'
66+
options[:only_patterns] = [/\Amanual\//, /\Astdlib\//]
6367
end
6468

6569
version '0.5' do
@@ -68,6 +72,8 @@ class Julia < UrlScraper
6872
self.type = 'sphinx_simple'
6973

7074
html_filters.push 'julia/entries_sphinx', 'julia/clean_html_sphinx', 'sphinx/clean_html'
75+
76+
options[:only_patterns] = [/\Amanual\//, /\Astdlib\//]
7177
end
7278

7379
def get_latest_version(opts)

0 commit comments

Comments
 (0)