chore: consistent formatting using prettier

This commit is contained in:
Hichem Fantar 2024-06-16 21:32:12 +01:00
parent 306a003563
commit d9a6cc59a6
14 changed files with 511 additions and 509 deletions

2
.prettierignore Normal file
View File

@ -0,0 +1,2 @@
**/*.md
**/*.mdx

View File

@ -1,3 +1,3 @@
module.exports = { module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')], presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
}; };

View File

@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {}, tailwindcss: {},
autoprefixer: {}, autoprefixer: {},
}, },
} };

View File

@ -14,7 +14,7 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = { const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure // By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], tutorialSidebar: [{ type: "autogenerated", dirName: "." }],
// But you can create a sidebar manually // But you can create a sidebar manually
/* /*

View File

@ -1,11 +1,11 @@
import clsx from 'clsx'; import clsx from "clsx";
import Heading from '@theme/Heading'; import Heading from "@theme/Heading";
import styles from './styles.module.css'; import styles from "./styles.module.css";
const FeatureList = [ const FeatureList = [
{ {
title: 'Easy to Use', title: "Easy to Use",
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, Svg: require("@site/static/img/undraw_docusaurus_mountain.svg").default,
description: ( description: (
<> <>
Docusaurus was designed from the ground up to be easily installed and Docusaurus was designed from the ground up to be easily installed and
@ -14,8 +14,8 @@ const FeatureList = [
), ),
}, },
{ {
title: 'Focus on What Matters', title: "Focus on What Matters",
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, Svg: require("@site/static/img/undraw_docusaurus_tree.svg").default,
description: ( description: (
<> <>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
@ -24,8 +24,8 @@ const FeatureList = [
), ),
}, },
{ {
title: 'Powered by React', title: "Powered by React",
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, Svg: require("@site/static/img/undraw_docusaurus_react.svg").default,
description: ( description: (
<> <>
Extend or customize your website layout by reusing React. Docusaurus can Extend or customize your website layout by reusing React. Docusaurus can
@ -35,9 +35,9 @@ const FeatureList = [
}, },
]; ];
function Feature({Svg, title, description}) { function Feature({ Svg, title, description }) {
return ( return (
<div className={clsx('col col--4')}> <div className={clsx("col col--4")}>
<div className="text--center"> <div className="text--center">
<Svg className={styles.featureSvg} role="img" /> <Svg className={styles.featureSvg} role="img" />
</div> </div>