File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import clsx from 'clsx' ;
2- import Link from '@docusaurus/Link' ;
3- import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
4- import Layout from '@theme/Layout' ;
5- import HomepageFeatures from '@site/src/components/HomepageFeatures' ;
6- import Heading from '@theme/Heading' ;
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- < Heading as = "h1" className = "hero__title" >
16- { siteConfig . title }
17- </ Heading >
18- < p className = "hero__subtitle" > { siteConfig . tagline } </ p >
19- < div className = { styles . buttons } >
20- < Link
21- className = "button button--secondary button--lg"
22- to = "/docs/intro" >
23- Docusaurus Tutorial - 5min ⏱️
24- </ Link >
25- </ div >
26- </ div >
27- </ header >
28- ) ;
29- }
1+ import { Redirect } from '@docusaurus/router' ;
302
313export default function Home ( ) : JSX . Element {
32- const { siteConfig} = useDocusaurusContext ( ) ;
33- return (
34- < Layout
35- title = { `Hello from ${ siteConfig . title } ` }
36- description = "Description will go into a meta tag in <head />" >
37- < HomepageHeader />
38- < main >
39- < HomepageFeatures />
40- </ main >
41- </ Layout >
42- ) ;
4+ return < Redirect to = "/docs/" /> ;
435}
You can’t perform that action at this time.
0 commit comments