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
3
3
class EntriesFilter < Docs ::EntriesFilter
4
4
def get_name
5
5
name = at_css ( 'h1' ) . content . strip
6
- name . remove! "\u{00b6} "
6
+ name . delete_suffix! "¶"
7
+ name . delete_suffix! "#"
7
8
8
9
if slug . start_with? ( 'api' )
9
10
name . remove! 'Module: '
Original file line number Diff line number Diff line change @@ -3,16 +3,18 @@ class ScikitImage < UrlScraper
3
3
self . name = 'scikit-image'
4
4
self . slug = 'scikit_image'
5
5
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/ )
8
10
self . links = {
9
11
home : 'https://scikit-image.org/' ,
10
12
code : 'https://github.com/scikit-image/scikit-image'
11
13
}
12
14
13
15
html_filters . push 'scikit_image/entries' , 'sphinx/clean_html'
14
16
15
- options [ :container ] = '.span9 '
17
+ options [ :container ] = 'main article '
16
18
options [ :skip ] = %w( api_changes.html )
17
19
options [ :only_patterns ] = [ /\A api/ , /\A user_guide/ ]
18
20
You can’t perform that action at this time.
0 commit comments