Update scikit-image documentation (0.25.0)

pull/2181/merge
Simon Legner 2 weeks ago
parent c70878abe0
commit 1dacda29a8

@ -3,7 +3,8 @@ module Docs
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: '

@ -3,8 +3,10 @@ module Docs
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'
@ -12,7 +14,7 @@ module Docs
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/]

Loading…
Cancel
Save