Showing the changes to lib/docs (3 of 6 files). Show all
Unified · Split
| @@ -21,6 +21,7 @@ module Docs · 20 unmodified lines | ||
| 21 | 21 | |
| 22 | 22 | css('pre').each do |node| |
| 23 | 23 | node.content = node.content |
| 24 | + node['data-language'] = 'julia' | |
| 24 | 25 | end |
| 25 | 26 | |
| 26 | 27 | doc |
| @@ -16,14 +16,21 @@ module Docs · 15 unmodified lines | ||
| 16 | 16 | def additional_entries |
| 17 | 17 | return [] unless slug.start_with?('stdlib') |
| 18 | 18 | |
| 19 | − css('.docstring-binding[id]').map do |node| | |
| 19 | + entries = [] | |
| 20 | + used_names = {} | |
| 21 | + | |
| 22 | + css('.docstring-binding[id]').each do |node| | |
| 20 | 23 | name = node.content |
| 21 | 24 | name.gsub! '.:', '.' |
| 22 | 25 | name.remove! 'Base.' |
| 23 | 26 | category = node.parent.at_css('.docstring-category').content |
| 24 | 27 | name << '()' if category == 'Function' || category == 'Method' |
| 25 | − [name, node['id']] | |
| 28 | + | |
| 29 | + entries << [name, node['id']] unless used_names.key?(name) | |
| 30 | + used_names[name] = true | |
| 26 | 31 | end |
| 32 | + | |
| 33 | + entries | |
| 27 | 34 | end |
| 28 | 35 | end |
| 29 | 36 | end |
| @@ -8,12 +8,32 @@ module Docs · 7 unmodified lines | ||
| 8 | 8 | options[:only_patterns] = [/\Amanual\//, /\Astdlib\//] |
| 9 | 9 | |
| 10 | 10 | options[:attribution] = <<-HTML |
| 11 | − © 2009–2018 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br> | |
| 11 | + © 2009–2019 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br> | |
| 12 | 12 | Licensed under the MIT License. |
| 13 | 13 | HTML |
| 14 | 14 | |
| 15 | + version '1.2' do | |
| 16 | + self.release = '1.2.0' | |
| 17 | + self.base_url = "https://docs.julialang.org/en/v#{release}/" | |
| 18 | + self.type = 'julia' | |
| 19 | + | |
| 20 | + html_filters.push 'julia/entries', 'julia/clean_html' | |
| 21 | + | |
| 22 | + options[:container] = '#docs' | |
| 23 | + end | |
| 24 | + | |
| 25 | + version '1.1' do | |
| 26 | + self.release = '1.1.1' | |
| 27 | + self.base_url = "https://docs.julialang.org/en/v#{release}/" | |
| 28 | + self.type = 'julia' | |
| 29 | + | |
| 30 | + html_filters.push 'julia/entries', 'julia/clean_html' | |
| 31 | + | |
| 32 | + options[:container] = '#docs' | |
| 33 | + end | |
| 34 | + | |
| 15 | 35 | version '1.0' do |
| 16 | − self.release = '1.0.1' | |
| 36 | + self.release = '1.0.4' | |
| 17 | 37 | self.base_url = "https://docs.julialang.org/en/v#{release}/" |
| 18 | 38 | self.type = 'julia' |
| 19 | 39 | |