website: redirect root to /docs (#8754)
This commit is contained in:
@ -1,10 +1,16 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
import Layout from "@theme/Layout";
|
import Layout from "@theme/Layout";
|
||||||
|
import BrowserOnly from "@docusaurus/BrowserOnly";
|
||||||
|
|
||||||
function Home() {
|
function Home() {
|
||||||
return (
|
return (
|
||||||
<Layout title={`authentik Documentation`}>
|
<Layout title={`authentik Documentation`}>
|
||||||
|
<BrowserOnly>
|
||||||
|
{() => {
|
||||||
|
window.location.href = "/docs";
|
||||||
|
}}
|
||||||
|
</BrowserOnly>
|
||||||
<header className={clsx("hero hero--primary")}>
|
<header className={clsx("hero hero--primary")}>
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<h1 className="hero__title">authentik Documentation</h1>
|
<h1 className="hero__title">authentik Documentation</h1>
|
||||||
|
|||||||
Reference in New Issue
Block a user