Skip to content

Commit

Permalink
Fix formatting and update guides index page
Browse files Browse the repository at this point in the history
  • Loading branch information
omckeon committed Aug 13, 2024
1 parent 20cd052 commit 779d522
Show file tree
Hide file tree
Showing 27 changed files with 30 additions and 26 deletions.
32 changes: 16 additions & 16 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,22 @@ export default defineConfig({
{
label: "Tutorials and Guides",
collapsed: true,
items: [
{ label: "Using SplashKit", autogenerate: { directory: "guides/0-using-splashkit", collapsed: false } },
{ label: "Animations", autogenerate: { directory: "guides/animations", collapsed: false } },
{ label: "Audio", autogenerate: { directory: "guides/audio", collapsed: false } },
{ label: "Camera", autogenerate: { directory: "guides/camera", collapsed: false } },
{ label: "Graphics", autogenerate: { directory: "guides/graphics", collapsed: false } },
{ label: "Input", autogenerate: { directory: "guides/input", collapsed: false } },
{ label: "Interface", autogenerate: { directory: "guides/interface", collapsed: false } },
{ label: "Json", autogenerate: { directory: "guides/json", collapsed: false } },
{ label: "Networking", autogenerate: { directory: "guides/networking", collapsed: false } },
{ label: "Raspberry GPIO", autogenerate: { directory: "guides/raspberry", collapsed: false } },
{ label: "Resource Bundles", autogenerate: { directory: "guides/resource_bundles", collapsed: false } },
{ label: "Sprites", autogenerate: { directory: "guides/sprites", collapsed: false } },
{ label: "Utilities", autogenerate: { directory: "guides/utilities", collapsed: false } },
]
// autogenerate: { directory: "guides", collapsed: true },
// items: [
// { label: "Using SplashKit", autogenerate: { directory: "guides/0-using-splashkit", collapsed: false } },
// { label: "Animations", autogenerate: { directory: "guides/animations", collapsed: false } },
// { label: "Audio", autogenerate: { directory: "guides/audio", collapsed: false } },
// { label: "Camera", autogenerate: { directory: "guides/camera", collapsed: false } },
// { label: "Graphics", autogenerate: { directory: "guides/graphics", collapsed: false } },
// { label: "Input", autogenerate: { directory: "guides/input", collapsed: false } },
// { label: "Interface", autogenerate: { directory: "guides/interface", collapsed: false } },
// { label: "Json", autogenerate: { directory: "guides/json", collapsed: false } },
// { label: "Networking", autogenerate: { directory: "guides/networking", collapsed: false } },
// { label: "Raspberry GPIO", autogenerate: { directory: "guides/raspberry", collapsed: false } },
// { label: "Resource Bundles", autogenerate: { directory: "guides/resource_bundles", collapsed: false } },
// { label: "Sprites", autogenerate: { directory: "guides/sprites", collapsed: false } },
// { label: "Utilities", autogenerate: { directory: "guides/utilities", collapsed: false } },
// ]
autogenerate: { directory: "guides", collapsed: true },
},
{
label: "Usage Examples",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Guides.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Frontmatter {
category?: string;
}
let posts = await Astro.glob<Frontmatter>("../content/docs/guides/*.mdx");
let posts = await Astro.glob<Frontmatter>("../content/docs/guides/*/*.mdx");
posts = posts.filter((post) => !post.file.endsWith("index.mdx"));
let guides = posts.filter(
Expand Down
8 changes: 4 additions & 4 deletions src/content/docs/api/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Index Routing Page
title: API Documentation
sidebar:
hidden: true
---
Expand All @@ -11,7 +11,7 @@ SplashKit provides a versatile set of categories, encompassing graphics, audio,

:::

import Some from "../../../components/Api.astro";
import ApiList from "../../../components/Api.astro";

<Some>
</Some>
<ApiList>
</ApiList>
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Using SplashKit (Overview)
sidebar:
order: 1
---

import { LinkCard, CardGrid } from '@astrojs/starlight/components';
Expand Down
12 changes: 7 additions & 5 deletions src/content/docs/guides/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
title: Index Routing Page
title: Tutorials and Guides
sidebar:
hidden: true
hidden: false
label: "Overview"
order: 0
---


Expand All @@ -11,7 +13,7 @@ SplashKit provides a versatile set of categories, encompassing graphics, audio,

:::

import Some from "../../../components/Guides.astro";
import GuidesList from "../../../components/Guides.astro";

<Some>
</Some>
<GuidesList>
</GuidesList>

0 comments on commit 779d522

Please sign in to comment.