Skip to content

Commit

Permalink
Routing updates (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvreddy04 authored Sep 19, 2023
1 parent f7327ed commit 7aebc05
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/', // Serve the docs at the site's root
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/vikramlearning/blazorbootstrap/edit/master/docs/',
},
Expand Down
22 changes: 12 additions & 10 deletions docs/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
import HomepageFeatures from '../components/HomepageFeatures';
import { Redirect } from 'react-router-dom';

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
Expand All @@ -28,14 +29,15 @@ function HomepageHeader() {

export default function Home() {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS framework`}
description="Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS framework.">
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
);
// return (
// <Layout
// title={`Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS framework`}
// description="Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS framework.">
// <HomepageHeader />
// <main>
// <HomepageFeatures />
// </main>
// </Layout>
// );
return <Redirect to='/getting-started/blazor-webassembly' />;
}

0 comments on commit 7aebc05

Please sign in to comment.