Skip to content

Commit b8f6741

Browse files
Sainanwell-in-that-case
authored andcommitted
Remove the landing page, redirect to "What is Pluto?" page instead
1 parent 42217ae commit b8f6741

File tree

5 files changed

+3
-132
lines changed

5 files changed

+3
-132
lines changed

docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const config = {
7676
navbar: {
7777
title: 'Pluto',
7878
logo: {
79+
href: 'docs/Introduction',
7980
alt: 'Pluto Logo',
8081
src: 'img/logo.png',
8182
},

src/components/HomepageFeatures/index.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/components/HomepageFeatures/styles.module.css

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/pages/index.js

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,6 @@
11
import React from 'react';
2-
import clsx from 'clsx';
3-
import Link from '@docusaurus/Link';
4-
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
5-
import Layout from '@theme/Layout';
6-
import HomepageFeatures from '@site/src/components/HomepageFeatures';
7-
8-
import styles from './index.module.css';
9-
10-
function HomepageHeader() {
11-
const {siteConfig} = useDocusaurusContext();
12-
return (
13-
<header className={clsx('hero hero--primary', styles.heroBanner)}>
14-
<div className="container">
15-
<h1 className="hero__title">{siteConfig.title}</h1>
16-
<p className="hero__subtitle">{siteConfig.tagline}</p>
17-
<div className={styles.buttons}>
18-
<Link
19-
className="button button--secondary button--lg"
20-
to="/docs/Introduction">
21-
Learn More
22-
</Link>
23-
</div>
24-
</div>
25-
</header>
26-
);
27-
}
2+
import {Redirect} from '@docusaurus/router';
283

294
export default function Home() {
30-
const {siteConfig} = useDocusaurusContext();
31-
return (
32-
<Layout
33-
title={siteConfig.title}
34-
description="The official website for Pluto, a Lua dialect.">
35-
<HomepageHeader />
36-
<main>
37-
<HomepageFeatures />
38-
</main>
39-
</Layout>
40-
);
5+
return <Redirect to="/docs/Introduction" />;
416
}

src/pages/index.module.css

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)