Skip to content

Commit

Permalink
fix homepage and sidebar (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmyriel authored Oct 6, 2024
1 parent 6498cd4 commit f11bb8f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/InteractiveTutorial/TutorialSubpages.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ import * as LoadContent from './MdxPages/LoadContent.mdx';
export const tutorialIndexPage = Index;
const tutorialSubPages = [
['quickstart', Quickstart],
['loadcontent', LoadContent],
['filteringbeginner', FilteringBeginner],
['filteringadvanced', FilteringAdvanced],
['filteringfulltext', FilteringFullText],
['multivectors', Multivectors],
['sparsevectors', SparseVectors],
['hybridsearch', HybridSearch],
['multitenancy', Multitenancy],
['loadcontent', LoadContent],
// add more pages here
];

Expand Down
3 changes: 2 additions & 1 deletion src/components/Sidebar/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { styled } from '@mui/material/styles';
import MuiDrawer from '@mui/material/Drawer';
import { List, Typography, Divider, ListItem, ListItemButton, ListItemIcon, ListItemText } from '@mui/material';
import { Link } from 'react-router-dom';
import { LibraryBooks, Terminal, Animation, Key } from '@mui/icons-material';
import { LibraryBooks, Terminal, Animation, Key, RocketLaunch } from '@mui/icons-material';
import Tooltip from '@mui/material/Tooltip';
import SidebarTutorialSection from './SidebarTutorialSection';

Expand Down Expand Up @@ -63,6 +63,7 @@ export default function Sidebar({ open, version, jwtEnabled, jwtVisible }) {
<DrawerHeader />
<Divider />
<List>
{sidebarItem('Welcome', <RocketLaunch />, '/welcome', open)}
{sidebarItem('Console', <Terminal />, '/console', open)}
{sidebarItem('Collections', <LibraryBooks />, '/collections', open)}
<ListItem key={'Tutorial'} disablePadding sx={{ display: 'block' }}>
Expand Down
3 changes: 3 additions & 0 deletions src/pages/Welcome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const Welcome = () => {
<StyledButton variant="contained" component={Link} to="/tutorial/loadcontent">
Load Sample Data
</StyledButton>
<StyledButton variant="contained" component={Link} to="/tutorial/">
Vector Search Tutorials
</StyledButton>
</ButtonsContainer>
</Box>

Expand Down

0 comments on commit f11bb8f

Please sign in to comment.