Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove announcement bar and refactor homepage to redirect to getting started docs #10

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const lightCodeTheme = require('./src/theme/CodeBlock/highlighting-light.js');
const darkCodeTheme = require('./src/theme/CodeBlock/highlighting-dark.js');
// @ts-check
const webpack = require('webpack');

Check warning on line 4 in docs/docusaurus.config.js

View workflow job for this annotation

GitHub Actions / lint

'webpack' is assigned a value but never used

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -62,11 +62,6 @@
},
],
},
announcementBar: {
content: ' ',
backgroundColor: '#03c',
textColor: '#fff',
},
footer: {
style: 'light',
links: [],
Expand All @@ -78,9 +73,9 @@
darkTheme: darkCodeTheme,
},
algolia: {
appId: '...',
apiKey: '...',
indexName: 'react-native-executorch',
appId: '9PIVJVUUXB',
apiKey: '8634751cfd500c6708f63ea5fc7446c6',
indexName: 'swmansion',
},
}),
};
Expand Down
43 changes: 2 additions & 41 deletions docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,48 +1,9 @@
import React from 'react';
import styles from './styles.module.css';
import Layout from '@theme/Layout';
import HomepageStartScreen from '@site/src/components/Hero/StartScreen';
import { HireUsSection } from '@swmansion/t-rex-ui';
import LogoHero from '@site/static/img/logo-hero.svg';
import HomepageButton from '@site/src/components/HomepageButton';
import { Redirect } from '@docusaurus/router';

function Home() {
return (
<Layout
title={`React Native ExecuTorch`}
description="Declarative way to run AI models in React Native on device, powered by ExecuTorch."
>
<div className={styles.container}>
<HomepageStartScreen />
</div>
<div
style={{
marginTop: '300px',
marginBottom: '350px',
gap: '30px',
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
}}
>
<LogoHero />
<h2>This site is under development</h2>
<a href="/react-native-executorch/docs/fundamentals/getting-started">
<HomepageButton
href="/react-native-executorch/docs/fundamentals/getting-started"
title="Checkout the docs"
/>
</a>
</div>
<div className={styles.container}>
<HireUsSection
href={
'https://swmansion.com/contact/projects?utm_source=react-native-executorch&utm_medium=docs'
}
/>
</div>
</Layout>
<Redirect to="/react-native-executorch/docs/fundamentals/getting-started" />
);
}

Expand Down
Loading