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 React from "react";
|
||||||
import clsx from "clsx";
|
import { Redirect } from "@docusaurus/router";
|
||||||
import Layout from "@theme/Layout";
|
|
||||||
import BrowserOnly from "@docusaurus/BrowserOnly";
|
|
||||||
|
|
||||||
function Home() {
|
function Home() {
|
||||||
return (
|
return <Redirect to="/docs" />;
|
||||||
<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>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Home;
|
export default Home;
|
||||||
|
Reference in New Issue
Block a user