Skip to content

Commit

Permalink
Fix docs build (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurii-prykhodko-solid authored Feb 1, 2024
1 parent 87e1f0d commit 498c081
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/docusaurus/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Layout from '@theme/Layout';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
import HomepageRedirectPrompt from '../components/HomepageRedirectPrompt';
import BrowserOnly from '@docusaurus/BrowserOnly';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
Expand All @@ -21,12 +22,14 @@ export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext();
const introPageHref = 'docs/intro'

window.location.href = introPageHref;

return (
<Layout
title={`${siteConfig.title}`}
description="solid_lints documentation">
<BrowserOnly>
{() => <script>{window.location.href = introPageHref}</script>}
</BrowserOnly>

<HomepageHeader />
<HomepageRedirectPrompt redirectHref={introPageHref}/>
</Layout>
Expand Down

0 comments on commit 498c081

Please sign in to comment.