website/docs: improve root page and redirect (#11798)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-10-25 00:42:59 +02:00
committed by GitHub
parent 3b6d93dc2a
commit b7cccf5ad2

View File

@ -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;