Skip to content

Commit 91baae5

Browse files
committed
update docusaurus
1 parent 2b13e46 commit 91baae5

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

website/src/components/Chip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const Chip = ({ children }: ChipProps) => {
4343
};
4444

4545
const InfoIcon = () => (
46-
<svg fill="currentColor" viewBox="0 0 16 16" height="12px" width="12px">
46+
<svg fill="currentColor" height="12px" viewBox="0 0 16 16" width="12px">
4747
<path d="M8 15A7 7 0 118 1a7 7 0 010 14zm0 1A8 8 0 108 0a8 8 0 000 16z" />
4848
<path d="M8.93 6.588l-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 11-2 0 1 1 0 012 0z" />
4949
</svg>

website/src/components/GithubStats.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ export const GithubStats = () => {
44
return (
55
<div className="flex items-center gap-0.5">
66
<iframe
7+
className="mr-10 md:mr-40 min-[997px]:mr-0" // Adjust because of swizzling - src/theme/NavbarItem/ComponentTypes.tsx
8+
height={20}
79
src="https://ghbtns.com/github-btn.html?user=mkosir&amp;repo=typescript-style-guide&amp;type=star&amp;count=true&amp;size=small"
810
width={100}
9-
height={20}
10-
className="mr-10 md:mr-40 min-[997px]:mr-0" // Adjust because of swizzling - src/theme/NavbarItem/ComponentTypes.tsx
1111
/>
1212
<iframe
13+
className="hidden min-[997px]:inline"
14+
height={20}
1315
src="https://ghbtns.com/github-btn.html?user=mkosir&amp;repo=typescript-style-guide&amp;type=fork&amp;count=true&amp;size=small"
1416
width={100}
15-
height={20}
16-
className="hidden min-[997px]:inline"
1717
/>
1818
</div>
1919
);

website/src/components/MainTitle.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ export const MainTitle = ({ children }: MainTitleProps) => {
1313
return (
1414
<div className="mb-7 flex justify-center">
1515
<Tilt
16-
tiltAxis="y"
17-
tiltMaxAngleY={5}
18-
transitionSpeed={2500}
16+
glareBorderRadius="9px"
17+
glareColor={colorMode === 'dark' ? '#007cfe' : '#498cd5'}
1918
glareEnable={true}
2019
glareMaxOpacity={0.08}
21-
glareColor={colorMode === 'dark' ? '#007cfe' : '#498cd5'}
2220
glarePosition="all"
23-
glareBorderRadius="9px"
21+
tiltAxis="y"
22+
tiltMaxAngleY={5}
23+
transitionSpeed={2500}
2424
>
2525
<div className="flex items-center gap-2">
2626
<img src="https://raw.githubusercontent.com/mkosir/typescript-style-guide/main/misc/typescript-logo-30.png" />

website/src/components/TableOfContents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ export const TableOfContents = ({ items }: { items: ReadonlyArray<TOCItem> }) =>
1010
<div className="toc-inline -mt-2">
1111
<button
1212
className="rounded-md border-none px-2 py-1 text-[11px] hover:cursor-pointer"
13-
onClick={() => setIsTocExpanded((prev) => !prev)}
1413
title={`${isTocExpanded ? 'Collapse' : 'Expand'} Table of Contents`}
14+
onClick={() => setIsTocExpanded((prev) => !prev)}
1515
>
1616
{isTocExpanded ? 'Collapse' : 'Expand'}
1717
</button>
18-
<TOCInline toc={items} minHeadingLevel={2} maxHeadingLevel={isTocExpanded ? 3 : 2} />
18+
<TOCInline maxHeadingLevel={isTocExpanded ? 3 : 2} minHeadingLevel={2} toc={items} />
1919
</div>
2020
);
2121
};

0 commit comments

Comments
 (0)