mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update Astro documentation (1.6.3)
This commit is contained in:
parent
7e0dacb92b
commit
aedb9c3b31
3 changed files with 10 additions and 1 deletions
|
@ -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")
|
||||
|
|
|
@ -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*}, ''
|
||||
|
|
|
@ -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/)
|
||||
|
||||
|
|
Loading…
Reference in a new issue