docs: add dynamic CardGrids to overview pages and fix button text color

This commit is contained in:
2026-07-26 23:20:31 -04:00
parent cd08c0782e
commit f02714416c
3 changed files with 69 additions and 8 deletions
+4 -4
View File
@@ -718,14 +718,14 @@ def test_site_promotes_pages_with_asides_or_filetrees_to_mdx():
assert (out / "07-customization.mdx").exists(), "Aside page (rewritten NOTE) was not promoted to .mdx"
assert (out / "01-configuration-variables.md").exists(), "plain page was wrongly promoted to .mdx"
assert not (out / "01-configuration-variables.mdx").exists(), "plain page should stay .md"
assert (out / "02-path-setup.md").exists(), "plain page was wrongly promoted to .mdx"
assert not (out / "02-path-setup.mdx").exists(), "plain page should stay .md"
text = (out / "10-personalization.mdx").read_text()
assert "import { FileTree } from '@astrojs/starlight/components';" in text
assert "FileTree" in text.split("from '@astrojs/starlight/components';")[0]
text2 = (out / "11-viewing-this-manual.mdx").read_text()
assert "import { Aside } from '@astrojs/starlight/components';" in text2
assert "Aside" in text2.split("from '@astrojs/starlight/components';")[0]
def test_prettify_is_site_only():