File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ class ScikitImage
33 class EntriesFilter < Docs ::EntriesFilter
44 def get_name
55 name = at_css ( 'h1' ) . content . strip
6- name . remove! "\u{00b6} "
6+ name . delete_suffix! "¶"
7+ name . delete_suffix! "#"
78
89 if slug . start_with? ( 'api' )
910 name . remove! 'Module: '
Original file line number Diff line number Diff line change @@ -3,16 +3,18 @@ class ScikitImage < UrlScraper
33 self . name = 'scikit-image'
44 self . slug = 'scikit_image'
55 self . type = 'sphinx'
6- self . release = '0.18.1'
7- self . base_url = 'https://scikit-image.org/docs/0.18.x/'
6+ self . release = '0.25.0'
7+ v = self . release [ /\d +\. \d +/ ]
8+ self . base_url = "https://scikit-image.org/docs/#{ v } .x/"
9+ self . initial_paths = %w( / /api/ /user_guide/ )
810 self . links = {
911 home : 'https://scikit-image.org/' ,
1012 code : 'https://github.com/scikit-image/scikit-image'
1113 }
1214
1315 html_filters . push 'scikit_image/entries' , 'sphinx/clean_html'
1416
15- options [ :container ] = '.span9 '
17+ options [ :container ] = 'main article '
1618 options [ :skip ] = %w( api_changes.html )
1719 options [ :only_patterns ] = [ /\A api/ , /\A user_guide/ ]
1820
You can’t perform that action at this time.
0 commit comments