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
88 end
99
1010 def get_type
11+ return 'Guides' if slug . start_with? ( 'contribute/' )
12+ return 'Guides' if slug . start_with? ( 'guides/' )
1113 aside = at_css ( 'aside' )
1214 a = aside . at_css ( 'a[aria-current="page"]' , 'a[data-current-parent="true"]' )
1315 a . ancestors ( 'details' ) . at_css ( 'summary' ) . content
1416 end
1517
1618 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' )
1921 at_css ( 'article' ) . css ( 'h2[id], h3[id]' ) . each_with_object [ ] do |node , entries |
2022 type = node . content . strip
2123 type . sub! %r{\s *#\s *} , ''
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class Astro < UrlScraper
1616
1717 options [ :skip_patterns ] = [ /tutorial/ ]
1818
19- self . release = '2.9.7 '
19+ self . release = '3.2.0 '
2020 self . base_url = 'https://docs.astro.build/en/'
2121 self . initial_paths = %w( getting-started/ )
2222
You can’t perform that action at this time.
0 commit comments