From c24220bb9a13b00f92128291d6631006e44e0af8 Mon Sep 17 00:00:00 2001 From: Tulip Blossom Date: Mon, 9 Dec 2024 18:50:16 -0300 Subject: [PATCH] chore: clean up redundant template pages + move index.md --- {src/pages => docs}/index.md | 0 docusaurus.config.ts | 3 +- src/components/HomepageFeatures/index.tsx | 70 ------------------- .../HomepageFeatures/styles.module.css | 11 --- src/pages/index.module.css | 23 ------ src/pages/markdown-page.md | 7 -- 6 files changed, 1 insertion(+), 113 deletions(-) rename {src/pages => docs}/index.md (100%) delete mode 100644 src/components/HomepageFeatures/index.tsx delete mode 100644 src/components/HomepageFeatures/styles.module.css delete mode 100644 src/pages/index.module.css delete mode 100644 src/pages/markdown-page.md diff --git a/src/pages/index.md b/docs/index.md similarity index 100% rename from src/pages/index.md rename to docs/index.md diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 2bc312b..c694df4 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -32,8 +32,7 @@ const config: Config = { sidebarPath: "./sidebars.ts", // Disables the landing page routeBasePath: "/", - editUrl: - "https://github.com/ublue-os/bluefin-docs/tree/main", + editUrl: "https://github.com/ublue-os/bluefin-docs/tree/main", }, theme: { customCss: "./src/css/custom.css", diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx deleted file mode 100644 index 5bc84c2..0000000 --- a/src/components/HomepageFeatures/index.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import clsx from "clsx"; -import Heading from "@theme/Heading"; -import styles from "./styles.module.css"; - -type FeatureItem = { - title: string; - Svg: React.ComponentType>; - description: JSX.Element; -}; - -const FeatureList: FeatureItem[] = [ - { - title: "Easy to Use", - Svg: require("@site/static/img/undraw_docusaurus_mountain.svg").default, - description: ( - <> - Docusaurus was designed from the ground up to be easily installed and - used to get your website up and running quickly. - - ), - }, - { - title: "Focus on What Matters", - Svg: require("@site/static/img/undraw_docusaurus_tree.svg").default, - description: ( - <> - Docusaurus lets you focus on your docs, and we'll do the chores. Go - ahead and move your docs into the docs directory. - - ), - }, - { - title: "Powered by React", - Svg: require("@site/static/img/undraw_docusaurus_react.svg").default, - description: ( - <> - Extend or customize your website layout by reusing React. Docusaurus can - be extended while reusing the same header and footer. - - ), - }, -]; - -function Feature({ title, Svg, description }: FeatureItem) { - return ( -
-
- -
-
- {title} -

{description}

-
-
- ); -} - -export default function HomepageFeatures(): JSX.Element { - return ( -
-
-
- {FeatureList.map((props, idx) => ( - - ))} -
-
-
- ); -} diff --git a/src/components/HomepageFeatures/styles.module.css b/src/components/HomepageFeatures/styles.module.css deleted file mode 100644 index b248eb2..0000000 --- a/src/components/HomepageFeatures/styles.module.css +++ /dev/null @@ -1,11 +0,0 @@ -.features { - display: flex; - align-items: center; - padding: 2rem 0; - width: 100%; -} - -.featureSvg { - height: 200px; - width: 200px; -} diff --git a/src/pages/index.module.css b/src/pages/index.module.css deleted file mode 100644 index 9f71a5d..0000000 --- a/src/pages/index.module.css +++ /dev/null @@ -1,23 +0,0 @@ -/** - * CSS files with the .module.css suffix will be treated as CSS modules - * and scoped locally. - */ - -.heroBanner { - padding: 4rem 0; - text-align: center; - position: relative; - overflow: hidden; -} - -@media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; - } -} - -.buttons { - display: flex; - align-items: center; - justify-content: center; -} diff --git a/src/pages/markdown-page.md b/src/pages/markdown-page.md deleted file mode 100644 index 9756c5b..0000000 --- a/src/pages/markdown-page.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Markdown page example ---- - -# Markdown page example - -You don't need React to write simple standalone pages.