diff --git a/src/components/widgets/docs/Sidebar.astro b/src/components/widgets/docs/Sidebar.astro index 6322d79..6e07869 100644 --- a/src/components/widgets/docs/Sidebar.astro +++ b/src/components/widgets/docs/Sidebar.astro @@ -1,13 +1,13 @@ --- import type { MarkdownInstance } from "astro"; -const files = await Astro.glob('../../../pages/docs/items/**/*.md'); +const files = await Astro.glob("../../../pages/docs/items/**/*.md"); for (let i = 0; i < 100; i++) { files.push(files[0]); } const sections = files.reduce((acc, file) => { - const category: string = file.url!.split('/')[3]; + const category: string = file.url!.split("/")[3]; if (!acc[category]) acc[category] = []; @@ -20,24 +20,28 @@ const categories = Object.keys(sections); --- \ No newline at end of file + diff --git a/src/layouts/docs/ItemLayout.astro b/src/layouts/docs/ItemLayout.astro index bf7bc0a..5b7e85a 100644 --- a/src/layouts/docs/ItemLayout.astro +++ b/src/layouts/docs/ItemLayout.astro @@ -2,16 +2,16 @@ import Container from "../../components/atoms/Container.astro"; import Sidebar from "../../components/widgets/docs/Sidebar.astro"; import Navbar from "../../components/widgets/Navbar.astro"; -import Layout from "../../layouts/Layout.astro" +import Layout from "../../layouts/Layout.astro"; export interface Props { - content: { - title: string; - }; + content: { + title: string; + }; } const { - content: { title }, + content: { title }, } = Astro.props; --- @@ -25,10 +25,10 @@ const {