Skip to content

Commit d9a6cc5

Browse files
committedJun 16, 2024
chore: consistent formatting using prettier
1 parent 306a003 commit d9a6cc5

14 files changed

+511
-509
lines changed
 

‎.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/*.md
2+
**/*.mdx

‎babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
2+
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
33
};

‎docs/tutorial/_category_.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"label": "📝 Tutorial",
3-
"position": 300,
4-
"link": {
5-
"type": "generated-index"
6-
}
7-
}
2+
"label": "📝 Tutorial",
3+
"position": 300,
4+
"link": {
5+
"type": "generated-index"
6+
}
7+
}

‎postcss.config.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
}
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

‎sidebars.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
1515
const sidebars = {
16-
// By default, Docusaurus generates a sidebar from the docs folder structure
17-
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
16+
// By default, Docusaurus generates a sidebar from the docs folder structure
17+
tutorialSidebar: [{ type: "autogenerated", dirName: "." }],
1818

19-
// But you can create a sidebar manually
20-
/*
19+
// But you can create a sidebar manually
20+
/*
2121
tutorialSidebar: [
2222
'intro',
2323
'hello',
+56-56
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1-
import clsx from 'clsx';
2-
import Heading from '@theme/Heading';
3-
import styles from './styles.module.css';
1+
import clsx from "clsx";
2+
import Heading from "@theme/Heading";
3+
import styles from "./styles.module.css";
44

55
const FeatureList = [
6-
{
7-
title: 'Easy to Use',
8-
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
9-
description: (
10-
<>
11-
Docusaurus was designed from the ground up to be easily installed and
12-
used to get your website up and running quickly.
13-
</>
14-
),
15-
},
16-
{
17-
title: 'Focus on What Matters',
18-
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
19-
description: (
20-
<>
21-
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
22-
ahead and move your docs into the <code>docs</code> directory.
23-
</>
24-
),
25-
},
26-
{
27-
title: 'Powered by React',
28-
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
29-
description: (
30-
<>
31-
Extend or customize your website layout by reusing React. Docusaurus can
32-
be extended while reusing the same header and footer.
33-
</>
34-
),
35-
},
6+
{
7+
title: "Easy to Use",
8+
Svg: require("@site/static/img/undraw_docusaurus_mountain.svg").default,
9+
description: (
10+
<>
11+
Docusaurus was designed from the ground up to be easily installed and
12+
used to get your website up and running quickly.
13+
</>
14+
),
15+
},
16+
{
17+
title: "Focus on What Matters",
18+
Svg: require("@site/static/img/undraw_docusaurus_tree.svg").default,
19+
description: (
20+
<>
21+
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
22+
ahead and move your docs into the <code>docs</code> directory.
23+
</>
24+
),
25+
},
26+
{
27+
title: "Powered by React",
28+
Svg: require("@site/static/img/undraw_docusaurus_react.svg").default,
29+
description: (
30+
<>
31+
Extend or customize your website layout by reusing React. Docusaurus can
32+
be extended while reusing the same header and footer.
33+
</>
34+
),
35+
},
3636
];
3737

38-
function Feature({Svg, title, description}) {
39-
return (
40-
<div className={clsx('col col--4')}>
41-
<div className="text--center">
42-
<Svg className={styles.featureSvg} role="img" />
43-
</div>
44-
<div className="text--center padding-horiz--md">
45-
<Heading as="h3">{title}</Heading>
46-
<p>{description}</p>
47-
</div>
48-
</div>
49-
);
38+
function Feature({ Svg, title, description }) {
39+
return (
40+
<div className={clsx("col col--4")}>
41+
<div className="text--center">
42+
<Svg className={styles.featureSvg} role="img" />
43+
</div>
44+
<div className="text--center padding-horiz--md">
45+
<Heading as="h3">{title}</Heading>
46+
<p>{description}</p>
47+
</div>
48+
</div>
49+
);
5050
}
5151

5252
export default function HomepageFeatures() {
53-
return (
54-
<section className={styles.features}>
55-
<div className="container">
56-
<div className="row">
57-
{FeatureList.map((props, idx) => (
58-
<Feature key={idx} {...props} />
59-
))}
60-
</div>
61-
</div>
62-
</section>
63-
);
53+
return (
54+
<section className={styles.features}>
55+
<div className="container">
56+
<div className="row">
57+
{FeatureList.map((props, idx) => (
58+
<Feature key={idx} {...props} />
59+
))}
60+
</div>
61+
</div>
62+
</section>
63+
);
6464
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.features {
2-
display: flex;
3-
align-items: center;
4-
padding: 2rem 0;
5-
width: 100%;
2+
display: flex;
3+
align-items: center;
4+
padding: 2rem 0;
5+
width: 100%;
66
}
77

88
.featureSvg {
9-
height: 200px;
10-
width: 200px;
9+
height: 200px;
10+
width: 200px;
1111
}

‎src/components/SponsorList.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import { Sponsor } from "@site/src/components/Sponsors/Sponsor";
22

33
export const SponsorList = () => {
4-
const sponsors = [
5-
{
6-
imgSrc: "/sponsors/sponsor.png",
7-
url: "https://openwebui.com",
8-
name: "Open WebUI",
9-
description:
10-
"On a mission to build the best open-source AI user interface.",
11-
},
12-
];
4+
const sponsors = [
5+
{
6+
imgSrc: "/sponsors/sponsor.png",
7+
url: "https://openwebui.com",
8+
name: "Open WebUI",
9+
description:
10+
"On a mission to build the best open-source AI user interface.",
11+
},
12+
];
1313

14-
return (
15-
<div className=" flex gap-5 flex-wrap items-center justify-center">
16-
{sponsors.map((sponsor) => (
17-
<Sponsor sponsor={sponsor} />
18-
))}
19-
</div>
20-
);
14+
return (
15+
<div className=" flex gap-5 flex-wrap items-center justify-center">
16+
{sponsors.map((sponsor) => (
17+
<Sponsor sponsor={sponsor} />
18+
))}
19+
</div>
20+
);
2121
};

‎src/components/Sponsors/Sponsor.js

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
export const Sponsor = ({ sponsor }) => {
2-
return (
3-
<>
4-
<div className="flex flex-col mb-2 ">
5-
<div className="text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold underline mb-1.5">
6-
<a href={sponsor.url} target="_blank">
7-
{sponsor.name}
8-
</a>
9-
</div>
2+
return (
3+
<>
4+
<div className="flex flex-col mb-2 ">
5+
<div className="text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold underline mb-1.5">
6+
<a href={sponsor.url} target="_blank">
7+
{sponsor.name}
8+
</a>
9+
</div>
1010

11-
<a a href={sponsor.url} target="_blank">
12-
<div className="flex w-32 md:w-48 gap-2.5 items-start">
13-
<div className=" basis-1/2">
14-
<img
15-
className="rounded-xl "
16-
loading="lazy"
17-
alt={sponsor.name}
18-
src={sponsor.imgSrc}
19-
/>
20-
</div>
11+
<a a href={sponsor.url} target="_blank">
12+
<div className="flex w-32 md:w-48 gap-2.5 items-start">
13+
<div className=" basis-1/2">
14+
<img
15+
className="rounded-xl "
16+
loading="lazy"
17+
alt={sponsor.name}
18+
src={sponsor.imgSrc}
19+
/>
20+
</div>
2121

22-
<div className=" basis-1/2 flex">
23-
<div className=" text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold line-clamp-4 md:line-clamp-5 no-underline">
24-
{sponsor.description}
25-
</div>
26-
</div>
27-
</div>
28-
</a>
29-
</div>
30-
</>
31-
);
22+
<div className=" basis-1/2 flex">
23+
<div className=" text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold line-clamp-4 md:line-clamp-5 no-underline">
24+
{sponsor.description}
25+
</div>
26+
</div>
27+
</div>
28+
</a>
29+
</div>
30+
</>
31+
);
3232
};

‎src/components/Sponsors/TopBanner.js

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
export const TopBanner = ({ items }) => {
2-
return (
3-
<div className="pb-4">
4-
{items.map((item) => (
5-
<>
6-
<div className="mb-2">
7-
<div className="text-xs text-gray-500 dark:text-gray-400 font-bold underline mb-1">
8-
Sponsored by {item.name}
9-
</div>
2+
return (
3+
<div className="pb-4">
4+
{items.map((item) => (
5+
<>
6+
<div className="mb-2">
7+
<div className="text-xs text-gray-500 dark:text-gray-400 font-bold underline mb-1">
8+
Sponsored by {item.name}
9+
</div>
1010

11-
<a href={item.url} target="_blank">
12-
<img
13-
className="w-full rounded-xl hidden md:block"
14-
loading="lazy"
15-
alt={item.name}
16-
src={item.imgSrc}
17-
/>
11+
<a href={item.url} target="_blank">
12+
<img
13+
className="w-full rounded-xl hidden md:block"
14+
loading="lazy"
15+
alt={item.name}
16+
src={item.imgSrc}
17+
/>
1818

19-
<img
20-
className="w-full rounded-xl block md:hidden"
21-
loading="lazy"
22-
alt={item.name}
23-
src={item?.mobileImgSrc || item.imgSrc}
24-
/>
25-
</a>
19+
<img
20+
className="w-full rounded-xl block md:hidden"
21+
loading="lazy"
22+
alt={item.name}
23+
src={item?.mobileImgSrc || item.imgSrc}
24+
/>
25+
</a>
2626

27-
<div className="text-right text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold line-clamp-1">
28-
{item.description}
29-
</div>
30-
</div>
31-
</>
32-
))}
33-
</div>
34-
);
27+
<div className="text-right text-[0.6rem] text-gray-500 dark:text-gray-400 font-bold line-clamp-1">
28+
{item.description}
29+
</div>
30+
</div>
31+
</>
32+
))}
33+
</div>
34+
);
3535
};

0 commit comments

Comments
 (0)
Please sign in to comment.