Update Astro documentation (1.6.3)

This commit is contained in:
Simon Legner 2022-11-04 22:11:01 +01:00
parent 7e0dacb92b
commit aedb9c3b31
3 changed files with 10 additions and 1 deletions

View file

@ -5,6 +5,11 @@ module Docs
@doc = at_css('article > section')
css('.anchor-link').remove
css('.avatar-list').remove
css('header > h1').each do |node|
node.parent.before(node).remove
end
css('pre').each do |node|
node.content = node.css('.line').map(&:content).join("\n")

View file

@ -14,6 +14,8 @@ module Docs
end
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|
type = node.content.strip
type.sub! %r{\s*#\s*}, ''

View file

@ -14,7 +14,9 @@ module Docs
Licensed under the MIT License.
HTML
self.release = '1.4.7'
options[:skip_patterns] = [/tutorial/]
self.release = '1.6.3'
self.base_url = 'https://docs.astro.build/en/'
self.initial_paths = %w(getting-started/)