From 951bbb623d226dacc8c3245445936dec89a7f13f Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 18 Aug 2024 11:48:32 +0200 Subject: [PATCH] astro: root_page --- lib/docs/filters/astro/clean_html.rb | 2 ++ lib/docs/filters/astro/entries.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/lib/docs/filters/astro/clean_html.rb b/lib/docs/filters/astro/clean_html.rb index 6dc761fe..2b65e631 100644 --- a/lib/docs/filters/astro/clean_html.rb +++ b/lib/docs/filters/astro/clean_html.rb @@ -2,6 +2,8 @@ module Docs class Astro class CleanHtmlFilter < Filter def call + return '

Astro

Astro is a website build tool for the modern web — powerful developer experience meets lightweight output.

' if root_page? + @doc = at_css('main') css('.anchor-link').remove diff --git a/lib/docs/filters/astro/entries.rb b/lib/docs/filters/astro/entries.rb index 661446a7..e8eca02d 100644 --- a/lib/docs/filters/astro/entries.rb +++ b/lib/docs/filters/astro/entries.rb @@ -15,6 +15,7 @@ module Docs end def additional_entries + return [] if root_page? return [] if slug.start_with?('guides/deploy') return [] if slug.start_with?('guides/integrations-guide')