mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update Astro documentation (3.2.0)
This commit is contained in:
parent
19445c34fe
commit
c797dca21b
2 changed files with 5 additions and 3 deletions
|
@ -8,14 +8,16 @@ module Docs
|
|||
end
|
||||
|
||||
def get_type
|
||||
return 'Guides' if slug.start_with?('contribute/')
|
||||
return 'Guides' if slug.start_with?('guides/')
|
||||
aside = at_css('aside')
|
||||
a = aside.at_css('a[aria-current="page"]', 'a[data-current-parent="true"]')
|
||||
a.ancestors('details').at_css('summary').content
|
||||
end
|
||||
|
||||
def additional_entries
|
||||
return if slug.start_with?('guides/deploy')
|
||||
return if slug.start_with?('guides/integrations-guide')
|
||||
return [] if slug.start_with?('guides/deploy')
|
||||
return [] if slug.start_with?('guides/integrations-guide')
|
||||
at_css('article').css('h2[id], h3[id]').each_with_object [] do |node, entries|
|
||||
type = node.content.strip
|
||||
type.sub! %r{\s*#\s*}, ''
|
||||
|
|
|
@ -16,7 +16,7 @@ module Docs
|
|||
|
||||
options[:skip_patterns] = [/tutorial/]
|
||||
|
||||
self.release = '2.9.7'
|
||||
self.release = '3.2.0'
|
||||
self.base_url = 'https://docs.astro.build/en/'
|
||||
self.initial_paths = %w(getting-started/)
|
||||
|
||||
|
|
Loading…
Reference in a new issue