From 46a2167ad4b0528a95d4b5cfd91ea95130f5a51f Mon Sep 17 00:00:00 2001 From: rishabkumar7 Date: Mon, 15 Jan 2024 20:33:00 -0500 Subject: [PATCH 1/2] changed index.tsx so welcome is root page --- docs/Welcome.md | 1 + src/pages/_index.tsx | 55 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 src/pages/_index.tsx diff --git a/docs/Welcome.md b/docs/Welcome.md index 654151f..7f2c99c 100644 --- a/docs/Welcome.md +++ b/docs/Welcome.md @@ -1,5 +1,6 @@ --- sidebar_position: 1 +slug: / --- diff --git a/src/pages/_index.tsx b/src/pages/_index.tsx new file mode 100644 index 0000000..d237791 --- /dev/null +++ b/src/pages/_index.tsx @@ -0,0 +1,55 @@ +import React from 'react'; +import clsx from 'clsx'; +import Link from '@docusaurus/Link'; +import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; +import Layout from '@theme/Layout'; +import HomepageApi from '../components/HomepageApi'; +import HomepageFeatures from '@site/src/components/HomepageFeatures'; + +import styles from './index.module.css'; + +import Image from '@theme/IdealImage'; +import bannerImg from '../../static/img/LTC-HQ1.png'; + +function HomepageHeader() { + const { siteConfig } = useDocusaurusContext(); + return ( +
+
+ {/* +

{siteConfig.title}

+ */} +

{siteConfig.tagline}

+
+
+ ); +} + +export default function Home(): JSX.Element { + const { siteConfig } = useDocusaurusContext(); + return ( + + +

CLOUD DEFINITION OF THE DAY:

+ +
+ + Go to Guide + +

+ + Submit a definition + +
+
+ + +
+
+ ); +} From e473bdfdd9f4245d2a4e02c46313607074301649 Mon Sep 17 00:00:00 2001 From: rishabkumar7 Date: Mon, 15 Jan 2024 20:37:13 -0500 Subject: [PATCH 2/2] also had to change config to serve docs at / route --- docusaurus.config.js | 1 + src/pages/index.tsx | 55 -------------------------------------------- 2 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 src/pages/index.tsx diff --git a/docusaurus.config.js b/docusaurus.config.js index 8ba6f76..6fe6b18 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -38,6 +38,7 @@ const config = { /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { + routeBasePath: '/', // Serve the docs at the site's root sidebarPath: require.resolve('./sidebars.js'), // Remove this to remove the "edit this page" links. editUrl: diff --git a/src/pages/index.tsx b/src/pages/index.tsx deleted file mode 100644 index d237791..0000000 --- a/src/pages/index.tsx +++ /dev/null @@ -1,55 +0,0 @@ -import React from 'react'; -import clsx from 'clsx'; -import Link from '@docusaurus/Link'; -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; -import Layout from '@theme/Layout'; -import HomepageApi from '../components/HomepageApi'; -import HomepageFeatures from '@site/src/components/HomepageFeatures'; - -import styles from './index.module.css'; - -import Image from '@theme/IdealImage'; -import bannerImg from '../../static/img/LTC-HQ1.png'; - -function HomepageHeader() { - const { siteConfig } = useDocusaurusContext(); - return ( -
-
- {/* -

{siteConfig.title}

- */} -

{siteConfig.tagline}

-
-
- ); -} - -export default function Home(): JSX.Element { - const { siteConfig } = useDocusaurusContext(); - return ( - - -

CLOUD DEFINITION OF THE DAY:

- -
- - Go to Guide - -

- - Submit a definition - -
-
- - -
-
- ); -}