mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update Astro documentation (2.6.3)
This commit is contained in:
parent
f5d6e74a88
commit
e53b2614a6
3 changed files with 7 additions and 3 deletions
|
@ -26,6 +26,10 @@ module Docs
|
|||
node.before(node.children).remove
|
||||
end
|
||||
|
||||
css('.cms-nav').remove
|
||||
|
||||
css('.copy-button-wrapper, .copy-button-tooltip').remove
|
||||
|
||||
doc
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,7 +2,7 @@ module Docs
|
|||
class Astro
|
||||
class EntriesFilter < Docs::EntriesFilter
|
||||
def get_name
|
||||
name = at_css('h1').content
|
||||
name = at_css('article h1').content
|
||||
name.sub! %r{\s*#\s*}, ''
|
||||
name
|
||||
end
|
||||
|
@ -16,7 +16,7 @@ module Docs
|
|||
def additional_entries
|
||||
return if slug.start_with?('guides/deploy')
|
||||
return if slug.start_with?('guides/integrations-guide')
|
||||
at_css('article').css('h2, h3').each_with_object [] do |node, entries|
|
||||
at_css('article').css('h2[id], h3[id]').each_with_object [] do |node, entries|
|
||||
type = node.content.strip
|
||||
type.sub! %r{\s*#\s*}, ''
|
||||
entries << ["#{name}: #{type}", node['id']]
|
||||
|
|
|
@ -16,7 +16,7 @@ module Docs
|
|||
|
||||
options[:skip_patterns] = [/tutorial/]
|
||||
|
||||
self.release = '2.0.0'
|
||||
self.release = '2.6.3'
|
||||
self.base_url = 'https://docs.astro.build/en/'
|
||||
self.initial_paths = %w(getting-started/)
|
||||
|
||||
|
|
Loading…
Reference in a new issue