Skip to content

Commit 2a8f774

Browse files
authored
Merge pull request #2076 from freeCodeCamp/astro
Update Astro documentation (3.2.0)
2 parents 245ea08 + c797dca commit 2a8f774

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/docs/filters/astro/entries.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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*}, ''

lib/docs/scrapers/astro.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)