Skip to content

Commit

Permalink
linking fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avi278 committed May 2, 2024
1 parent b2bfd38 commit f18e17c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 26 deletions.
48 changes: 30 additions & 18 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ const config = {
id: 'tutorials',
path: './tutorials',
sidebarPath: './sidebars.js',
routeBasePath: '/tutorials',
routeBasePath: 'tutorials',
},
],
['@docusaurus/plugin-content-docs',
{
id: 'docs-geovisto',
path: './docs-geovisto',
sidebarPath: './sidebars.js',
routeBasePath: '/docs-geovisto',
},
],
{
id: 'docs-geovisto',
path: './docs-geovisto',
sidebarPath: './sidebars.js',
routeBasePath: 'docs-geovisto',
},
],
['@docusaurus/plugin-content-blog',
{
id: 'research',
Expand All @@ -42,6 +42,8 @@ const config = {
//blogSidebarCount: 0 // disable sidebar
},
],





Expand Down Expand Up @@ -83,28 +85,31 @@ const config = {
},
items: [
{
to: '/tutorials/Intro',
type: 'doc',
docsPluginId: 'tutorials',
docId: 'intro',
position: 'left',
label: 'Tutorial',
activeBaseRegex: `/turorials/`,
label: 'Tutorials',
},
{
to: 'playground#playground-hook',
label: 'Playground',
position: 'left',
},
{
to: 'docs-geovisto',
to: 'docs-geovisto/',
docsPluginId: 'docs-geovisto',
position: 'left',
label: 'Documentation',
activeBaseRegex: `/docs-geovisto/README`,
activeBaseRegex: `docs-geovisto/README`,
},
{
to: '/research/',
to: 'research/',
position: 'left',
label: 'Research',
activeBaseRegex: `/research/`,
activeBaseRegex: `research/`,
},

{
href: 'https://github.com/geovisto',
position: 'right',
Expand All @@ -125,12 +130,12 @@ const config = {
items: [
{
label: 'Tutorial',
to: '/docs/intro',
to: 'tutorials/',
},
{
label: 'Documentation',
to: '/docs-geovisto/',
}
to: 'docs-geovisto/',
},
],
},
{
Expand All @@ -140,10 +145,17 @@ const config = {
label: 'Playground',
to: '/playground#playground-hook',
},

],
},
{
title: 'Research',
items: [
{
label: 'Research',
to: '/research',
},

],
},
{
Expand Down
12 changes: 4 additions & 8 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import "./index.css";
import GeovistoLogo from "@site/static/img/geovisto-logo4.png";
import { Button } from "react-bootstrap";
import { Layers } from "../components/bootstrap/layers/layers";
import { Research } from "../components/bootstrap/research/research";
import { Tools } from "../components/bootstrap/tools/tools";
import { useEffect } from "react";
import useBaseUrl from '@docusaurus/useBaseUrl';
Expand Down Expand Up @@ -86,7 +85,7 @@ const HomepageHeader = () => {
className="pt-lg-5"
/>
<div className="header__button__wrapper">
<Link to="/tutorials/intro">
<Link to="/tutorials">
<Button variant="default" className="btn-header">Get started</Button>
</Link>
<Link to="/playground#playground-hook">
Expand Down Expand Up @@ -124,14 +123,11 @@ export const Home = () => {
</div>
</div>

{/*Tools*/}

<Tools/>

{/*Geovisto Layers*/}
<Layers />
<Layers/>

{/*Research*/}
<Research />


</main>
</Layout>
Expand Down
1 change: 1 addition & 0 deletions tutorials/intro.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 1
slug: /
---

# Intro
Expand Down

0 comments on commit f18e17c

Please sign in to comment.