Skip to content

Commit 951bbb6

Browse files
committed
astro: root_page
1 parent d579d97 commit 951bbb6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/docs/filters/astro/clean_html.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module Docs
22
class Astro
33
class CleanHtmlFilter < Filter
44
def call
5+
return '<h1>Astro</h1><p> Astro is a website build tool for the modern web — powerful developer experience meets lightweight output.</p>' if root_page?
6+
57
@doc = at_css('main')
68

79
css('.anchor-link').remove

lib/docs/filters/astro/entries.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def get_type
1515
end
1616

1717
def additional_entries
18+
return [] if root_page?
1819
return [] if slug.start_with?('guides/deploy')
1920
return [] if slug.start_with?('guides/integrations-guide')
2021

0 commit comments

Comments
 (0)