File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,16 @@ def get_name
8
8
end
9
9
10
10
def get_type
11
+ return 'Guides' if slug . start_with? ( 'contribute/' )
12
+ return 'Guides' if slug . start_with? ( 'guides/' )
11
13
aside = at_css ( 'aside' )
12
14
a = aside . at_css ( 'a[aria-current="page"]' , 'a[data-current-parent="true"]' )
13
15
a . ancestors ( 'details' ) . at_css ( 'summary' ) . content
14
16
end
15
17
16
18
def additional_entries
17
- return if slug . start_with? ( 'guides/deploy' )
18
- return if slug . start_with? ( 'guides/integrations-guide' )
19
+ return [ ] if slug . start_with? ( 'guides/deploy' )
20
+ return [ ] if slug . start_with? ( 'guides/integrations-guide' )
19
21
at_css ( 'article' ) . css ( 'h2[id], h3[id]' ) . each_with_object [ ] do |node , entries |
20
22
type = node . content . strip
21
23
type . sub! %r{\s *#\s *} , ''
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Astro < UrlScraper
16
16
17
17
options [ :skip_patterns ] = [ /tutorial/ ]
18
18
19
- self . release = '2.9.7 '
19
+ self . release = '3.2.0 '
20
20
self . base_url = 'https://docs.astro.build/en/'
21
21
self . initial_paths = %w( getting-started/ )
22
22
You can’t perform that action at this time.
0 commit comments