mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
feat(eslint-plugin): new prefer-docusaurus-heading rule (#8384)
This commit is contained in:
parent
a53d4cb2b3
commit
90e7e321d1
31 changed files with 254 additions and 52 deletions
|
@ -8,6 +8,7 @@
|
|||
import React from 'react';
|
||||
import Translate from '@docusaurus/Translate';
|
||||
import Link from '@docusaurus/Link';
|
||||
import Heading from '@theme/Heading';
|
||||
import styles from './styles.module.css';
|
||||
|
||||
function TwitterLink() {
|
||||
|
@ -63,7 +64,9 @@ export default function ChangelogListHeader({
|
|||
}): JSX.Element {
|
||||
return (
|
||||
<header className="margin-bottom--lg">
|
||||
<h1 style={{fontSize: '3rem'}}>{blogTitle}</h1>
|
||||
<Heading as="h1" style={{fontSize: '3rem'}}>
|
||||
{blogTitle}
|
||||
</Heading>
|
||||
<p>
|
||||
<Translate
|
||||
id="changelog.description"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue