Skip to content

Commit

Permalink
figure out the sidebar nav - internal link from index
Browse files Browse the repository at this point in the history
  • Loading branch information
Newman5 committed Aug 18, 2024
1 parent 733405d commit 0e0534a
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 59 deletions.
7 changes: 2 additions & 5 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ export default defineConfig({
},
sidebar: [
{
label: 'Guides',
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Example Guide', slug: 'guides/example' },
],
label: 'Presentations',
autogenerate: { directory: 'presentations' },
},
{
label: 'Reference',
Expand Down
32 changes: 32 additions & 0 deletions newastro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { defineConfig } from 'astro/config'; // Import the defineConfig function from Astro, which is used to define the site's configuration.
import starlight from '@astrojs/starlight'; // Import the Starlight integration from Astro, which is used to power the documentation site.

// https://astro.build/config
export default defineConfig({
site: 'https://odin-initiative.github.io', // The base URL for your site. This is important for generating absolute URLs.
base: '/study-group', // The base path for your site. This is necessary when your site is not served from the root of the domain.

integrations: [
starlight({
title: 'ODIN Study Group', // The title of your site, which will appear in the browser tab and in other metadata.

social: {
github: 'https://github.com/ODIN-Initiative', // The GitHub URL for the project, used in social icons or links on your site.
},

sidebar: [
{
label: 'Guides', // This creates a "Guides" section in the sidebar navigation.
items: [
// Each item here corresponds to a page or guide in the "Guides" section.
{ label: 'Example Guide', slug: 'guides/example' }, // A link labeled "Example Guide" that points to the "guides/example" page.
],
},
{
label: 'Reference', // This creates a "Reference" section in the sidebar navigation.
autogenerate: { directory: 'reference' }, // Automatically generate sidebar items based on the files found in the "reference" directory.
},
],
}),
],
});
27 changes: 0 additions & 27 deletions src/content/docs/guides/example.md

This file was deleted.

26 changes: 0 additions & 26 deletions src/content/docs/guides/signup.md

This file was deleted.

2 changes: 1 addition & 1 deletion src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hero:
file: ../../assets/study-group-banner.webp
actions:
- text: S3 Presentations
link: guides/example/
link: /study-group/presentations/presentations/
icon: right-arrow
variant: primary
- text: Look for more info about ODIN
Expand Down
File renamed without changes.
Loading

0 comments on commit 0e0534a

Please sign in to comment.