Skip to content

Commit

Permalink
website/docs: improve root page and redirect
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu committed Oct 24, 2024
1 parent 3b6d93d commit 023d599
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions website/src/pages/index.tsx
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;

0 comments on commit 023d599

Please sign in to comment.