website/docs: improve root page and redirect (#11798)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user