Unified · Split
Binary file not shown.
Binary file not shown.
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | [ |
| 2 | 2 | [ |
| 3 | 3 | "2016-07-24", |
| 4 | − "New documentation: <a href=\"/crystal/\">Crystal</a>" | |
| 4 | + "New documentations: <a href=\"/julia/\">Julia</a> and <a href=\"/crystal/\">Crystal</a>" | |
| 5 | 5 | ], [ |
| 6 | 6 | "2016-07-03", |
| 7 | 7 | "New documentations: <a href=\"/cmake/\">CMake</a> and <a href=\"/matplotlib/\">Matplotlib</a>" |
| @@ -255,6 +255,11 @@ credits = [ · 254 unmodified lines | ||
| 255 | 255 | 'jQuery Foundation and other contributors', |
| 256 | 256 | 'MIT', |
| 257 | 257 | 'https://raw.githubusercontent.com/jquery/api.jqueryui.com/master/LICENSE.txt' |
| 258 | + ], [ | |
| 259 | + 'Julia', | |
| 260 | + '2009-2015 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors', | |
| 261 | + 'MIT', | |
| 262 | + 'https://raw.githubusercontent.com/JuliaLang/julia/master/LICENSE.md' | |
| 258 | 263 | ], [ |
| 259 | 264 | 'Knockout.js', |
| 260 | 265 | 'Steven Sanderson, the Knockout.js team, and other contributors', |
| @@ -131,6 +131,7 @@ · 130 unmodified lines | ||
| 131 | 131 | ._icon-opentsdb:before { background-position: -4rem -8rem; } |
| 132 | 132 | ._icon-q:before { background-position: -5rem -8rem; } |
| 133 | 133 | ._icon-crystal:before { background-position: -6rem -8rem; @extend %darkIconFix !optional; } |
| 134 | +._icon-julia:before { background-position: -7rem -8rem; @extend %darkIconFix !optional; } | |
| 134 | 135 | ._icon-react_native:before { background-position: 0 -9rem; } |
| 135 | 136 | ._icon-phalcon:before { background-position: -1rem -9rem; } |
| 136 | 137 | ._icon-matplotlib:before { background-position: -2rem -9rem; } |
| @@ -0,0 +1,11 @@ | ||
| 1 | +module Docs | |
| 2 | + class Julia | |
| 3 | + class CleanHtmlFilter < Filter | |
| 4 | + def call | |
| 5 | + @doc = at_css('.document .section') | |
| 6 | + | |
| 7 | + doc | |
| 8 | + end | |
| 9 | + end | |
| 10 | + end | |
| 11 | +end | |
| @@ -0,0 +1,34 @@ | ||
| 1 | +module Docs | |
| 2 | + class Julia | |
| 3 | + class EntriesFilter < Docs::EntriesFilter | |
| 4 | + def get_name | |
| 5 | + name = at_css('.document h1').content | |
| 6 | + name.remove! "\u{00B6}" | |
| 7 | + name | |
| 8 | + end | |
| 9 | + | |
| 10 | + def get_type | |
| 11 | + if slug.start_with?('manual') | |
| 12 | + 'Manual' | |
| 13 | + else | |
| 14 | + name | |
| 15 | + end | |
| 16 | + end | |
| 17 | + | |
| 18 | + def additional_entries | |
| 19 | + return [] unless slug.start_with?('stdlib') | |
| 20 | + entries = [] | |
| 21 | + | |
| 22 | + css('.function dt[id]').each do |node| | |
| 23 | + entries << [node['id'].remove('Base.') + '()', node['id']] | |
| 24 | + end | |
| 25 | + | |
| 26 | + css('.data dt[id]').each do |node| | |
| 27 | + entries << [node['id'].remove('Base.'), node['id']] | |
| 28 | + end | |
| 29 | + | |
| 30 | + entries | |
| 31 | + end | |
| 32 | + end | |
| 33 | + end | |
| 34 | +end | |
| @@ -0,0 +1,20 @@ | ||
| 1 | +module Docs | |
| 2 | + class Julia < UrlScraper | |
| 3 | + self.type = 'sphinx_simple' | |
| 4 | + self.release = '0.4.6' | |
| 5 | + self.base_url = 'http://docs.julialang.org/en/release-0.4/' | |
| 6 | + self.links = { | |
| 7 | + home: 'http://julialang.org/', | |
| 8 | + code: 'https://github.com/JuliaLang/julia' | |
| 9 | + } | |
| 10 | + | |
| 11 | + html_filters.push 'julia/entries', 'julia/clean_html', 'sphinx/clean_html' | |
| 12 | + | |
| 13 | + options[:only_patterns] = [/\Amanual\//, /\Astdlib\//] | |
| 14 | + | |
| 15 | + options[:attribution] = <<-HTML | |
| 16 | + © 2009–2015 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br> | |
| 17 | + Licensed under the MIT License. | |
| 18 | + HTML | |
| 19 | + end | |
| 20 | +end | |
Binary file not shown.
Binary file not shown.
| @@ -0,0 +1 @@ | ||
| 1 | +http://julialang.org/favicon.ico | |