From 67faa686e8d53ab0f439454bc046344d5580a665 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Tue, 26 Apr 2022 20:15:45 +0800 Subject: [PATCH] refactor: semantic markup improvement, fix validation warnings (#7244) * refactor: semantic markup improvement, fix validation warnings * change section/article a bit --- .../docusaurus-theme-classic/src/theme/DocCardList/index.tsx | 4 ++-- .../src/theme/DocCategoryGeneratedIndexPage/index.tsx | 4 ++-- website/docs/introduction.md | 1 - website/src/pages/index.tsx | 3 +-- website/versioned_docs/version-2.0.0-beta.17/introduction.md | 1 - website/versioned_docs/version-2.0.0-beta.18/introduction.md | 1 - 6 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/docusaurus-theme-classic/src/theme/DocCardList/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocCardList/index.tsx index 3cd1425daf2b..d2e61b8037c4 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocCardList/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocCardList/index.tsx @@ -25,12 +25,12 @@ function filterItems(items: PropSidebarItem[]): PropSidebarItem[] { export default function DocCardList({items, className}: Props): JSX.Element { return ( -
+
{filterItems(items).map((item, index) => (
))} -
+ ); } diff --git a/packages/docusaurus-theme-classic/src/theme/DocCategoryGeneratedIndexPage/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocCategoryGeneratedIndexPage/index.tsx index 8f58116ead34..a1b183f1705b 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocCategoryGeneratedIndexPage/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocCategoryGeneratedIndexPage/index.tsx @@ -60,9 +60,9 @@ function DocCategoryGeneratedIndexPageContent({

{categoryGeneratedIndex.description}

)} -
+
-
+