-
-
Notifications
You must be signed in to change notification settings - Fork 891
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website/docs: improve root page and redirect (#11798)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
- Loading branch information
Showing
1 changed file
with
2 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,8 @@ | ||
import React from "react"; | ||
import clsx from "clsx"; | ||
import Layout from "@theme/Layout"; | ||
import BrowserOnly from "@docusaurus/BrowserOnly"; | ||
import { Redirect } from "@docusaurus/router"; | ||
|
||
function Home() { | ||
return ( | ||
<Layout title={`authentik Documentation`}> | ||
<BrowserOnly> | ||
{() => { | ||
window.location.href = "/docs"; | ||
}} | ||
</BrowserOnly> | ||
<header className={clsx("hero hero--primary")}> | ||
<div className="container"> | ||
<h1 className="hero__title">authentik Documentation</h1> | ||
</div> | ||
</header> | ||
</Layout> | ||
); | ||
return <Redirect to="/docs" />; | ||
} | ||
|
||
export default Home; |