History

astro: root_page

Simon Legner committed 2 years ago

Commit 951bbb61 parent d579d972 files · +3 −0Browse files

Unified · Split

2 files
  1. lib/docs/filters/astro/clean_html.rb +2 −0
  2. lib/docs/filters/astro/entries.rb +1 −0
lib/docs/filters/astro/clean_html.rb+2−0
@@ -2,6 +2,8 @@ module Docs · 1 unmodified line
2 class Astro2 class Astro
3 class CleanHtmlFilter < Filter3 class CleanHtmlFilter < Filter
4 def call4 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
5 @doc = at_css('main')7 @doc = at_css('main')
6 8
7 css('.anchor-link').remove9 css('.anchor-link').remove
lib/docs/filters/astro/entries.rb+1−0
@@ -15,6 +15,7 @@ module Docs · 14 unmodified lines
15 end15 end
16 16
17 def additional_entries17 def additional_entries
18 return [] if root_page?
18 return [] if slug.start_with?('guides/deploy')19 return [] if slug.start_with?('guides/deploy')
19 return [] if slug.start_with?('guides/integrations-guide')20 return [] if slug.start_with?('guides/integrations-guide')
20 21