Skip to content

Commit

Permalink
Update scikit-image documentation (0.25.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Jan 11, 2025
1 parent c70878a commit 1dacda2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/docs/filters/scikit_image/entries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ class ScikitImage
class EntriesFilter < Docs::EntriesFilter
def get_name
name = at_css('h1').content.strip
name.remove! "\u{00b6}"
name.delete_suffix! "¶"
name.delete_suffix! "#"

if slug.start_with?('api')
name.remove! 'Module: '
Expand Down
8 changes: 5 additions & 3 deletions lib/docs/scrapers/scikit_image.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ class ScikitImage < UrlScraper
self.name = 'scikit-image'
self.slug = 'scikit_image'
self.type = 'sphinx'
self.release = '0.18.1'
self.base_url = 'https://scikit-image.org/docs/0.18.x/'
self.release = '0.25.0'
v = self.release[/\d+\.\d+/]
self.base_url = "https://scikit-image.org/docs/#{v}.x/"
self.initial_paths = %w(/ /api/ /user_guide/)
self.links = {
home: 'https://scikit-image.org/',
code: 'https://github.com/scikit-image/scikit-image'
}

html_filters.push 'scikit_image/entries', 'sphinx/clean_html'

options[:container] = '.span9'
options[:container] = 'main article'
options[:skip] = %w(api_changes.html)
options[:only_patterns] = [/\Aapi/, /\Auser_guide/]

Expand Down

0 comments on commit 1dacda2

Please sign in to comment.