Skip to content

Commit

Permalink
refactor: semantic markup improvement, fix validation warnings (#7244)
Browse files Browse the repository at this point in the history
* refactor: semantic markup improvement, fix validation warnings

* change section/article a bit
  • Loading branch information
Josh-Cena authored Apr 26, 2022
1 parent f9fa212 commit 67faa68
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ function filterItems(items: PropSidebarItem[]): PropSidebarItem[] {

export default function DocCardList({items, className}: Props): JSX.Element {
return (
<div className={clsx('row', className)}>
<section className={clsx('row', className)}>
{filterItems(items).map((item, index) => (
<article key={index} className="col col--6 margin-bottom--lg">
<DocCard key={index} item={item} />
</article>
))}
</div>
</section>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ function DocCategoryGeneratedIndexPageContent({
<p>{categoryGeneratedIndex.description}</p>
)}
</header>
<main className="margin-top--lg">
<article className="margin-top--lg">
<DocCardList items={category.items} className={styles.list} />
</main>
</article>
<footer className="margin-top--lg">
<DocPaginator
previous={categoryGeneratedIndex.navigation.previous}
Expand Down
1 change: 0 additions & 1 deletion website/docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ In this presentation at [Algolia Community Event](https://www.algolia.com/), [Me
height="315"
src="https://www.youtube.com/embed/Yhyx7otSksg"
title="Docusaurus: Documentation Made Easy"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
Expand Down
3 changes: 1 addition & 2 deletions website/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function TweetsSection() {
<div className={clsx(styles.section, styles.sectionAlt)}>
<div className="container">
<h2 className={clsx('margin-bottom--lg', 'text--center')}>
Loved by many engineers
<Translate>Loved by many engineers</Translate>
</h2>
<div className={clsx('row', styles.tweetsSection)}>
{tweetColumns.map((tweetItems, i) => (
Expand Down Expand Up @@ -168,7 +168,6 @@ function VideoContainer() {
height="315"
src="https://www.youtube.com/embed/_An9EsKPhp0"
title="Explain Like I'm 5: Docusaurus"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
loading="lazy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ In this presentation at [Algolia Community Event](https://www.algolia.com/), [Me
height="315"
src="https://www.youtube.com/embed/Yhyx7otSksg"
title="Docusaurus: Documentation Made Easy"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ In this presentation at [Algolia Community Event](https://www.algolia.com/), [Me
height="315"
src="https://www.youtube.com/embed/Yhyx7otSksg"
title="Docusaurus: Documentation Made Easy"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
Expand Down

0 comments on commit 67faa68

Please sign in to comment.