Showing the changes to lib/docs (3 of 3 files). Show all
Unified · Split
| @@ -26,6 +26,10 @@ module Docs · 25 unmodified lines | ||
| 26 | 26 | node.before(node.children).remove |
| 27 | 27 | end |
| 28 | 28 | |
| 29 | + css('.cms-nav').remove | |
| 30 | + | |
| 31 | + css('.copy-button-wrapper, .copy-button-tooltip').remove | |
| 32 | + | |
| 29 | 33 | doc |
| 30 | 34 | end |
| 31 | 35 | end |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Astro |
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | 4 | def get_name |
| 5 | − name = at_css('h1').content | |
| 5 | + name = at_css('article h1').content | |
| 6 | 6 | name.sub! %r{\s*#\s*}, '' |
| 7 | 7 | name |
| 8 | 8 | end |
| @@ -16,7 +16,7 @@ module Docs · 7 unmodified lines | ||
| 16 | 16 | def additional_entries |
| 17 | 17 | return if slug.start_with?('guides/deploy') |
| 18 | 18 | return if slug.start_with?('guides/integrations-guide') |
| 19 | − at_css('article').css('h2, h3').each_with_object [] do |node, entries| | |
| 19 | + at_css('article').css('h2[id], h3[id]').each_with_object [] do |node, entries| | |
| 20 | 20 | type = node.content.strip |
| 21 | 21 | type.sub! %r{\s*#\s*}, '' |
| 22 | 22 | entries << ["#{name}: #{type}", node['id']] |
| @@ -16,7 +16,7 @@ module Docs · 15 unmodified lines | ||
| 16 | 16 | |
| 17 | 17 | options[:skip_patterns] = [/tutorial/] |
| 18 | 18 | |
| 19 | − self.release = '2.0.0' | |
| 19 | + self.release = '2.6.3' | |
| 20 | 20 | self.base_url = 'https://docs.astro.build/en/' |
| 21 | 21 | self.initial_paths = %w(getting-started/) |
| 22 | 22 | |