refactor: Add h1 headers to all pages missing it (#137)

* refactor: Add h1 headers to all pages missing it

* refactor: missed example h3

* change hooks example heading to bold text

---------

Co-authored-by: Luke <[email protected]>
This commit is contained in:
JagandLuke authored and GitHub committed 2023-07-08 11:08:43 +02:00
1 parent 74227cc262
commit 1d2c490b26
95 files changed
+2167 -2289

No files matched your search

+6 -5
View File
@@ -6,6 +6,7 @@ interface Props {
children?: React.ReactNode;
side?: 'left' | 'right';
link?: string;
label?: string;
}
const Button: React.FC = ({ side = 'left', children, icon, link }: Props) => {
@@ -27,7 +28,7 @@ export default Button;
export function GhButton(props: Props) {
return (
<Button icon={<IconBrandGithub />} side={props.side} link={props.link}>
GitHub
{props.label || "Github"}
</Button>
);
}
@@ -35,7 +36,7 @@ export function GhButton(props: Props) {
export function DocButton(props: Props) {
return (
<Button icon={<IconFileText />} side={props.side} link={props.link}>
Documentation
{props.label || "Documentation"}
</Button>
);
}
@@ -43,7 +44,7 @@ export function DocButton(props: Props) {
export function DownloadButton(props: Props) {
return (
<Button icon={<IconDownload />} side={props.side} link={props.link}>
Download
{props.label || "Download"}
</Button>
);
}
@@ -51,7 +52,7 @@ export function DownloadButton(props: Props) {
export function ReleaseButton(props: Props) {
return (
<Button icon={<IconTag />} side={props.side} link={props.link}>
Releases
{props.label || "Releases"}
</Button>
);
}
@@ -59,7 +60,7 @@ export function ReleaseButton(props: Props) {
export function NpmButton(props: Props) {
return (
<Button icon={<IconBrandNpm />} side={props.side} link={props.link}>
Package
{props.label || "Package"}
</Button>
);
}