This commit is contained in:
Korbs 2024-11-12 13:55:09 -05:00
parent 19e8a238ac
commit 367bb8cba6
5 changed files with 13 additions and 13 deletions

BIN
bun.lockb Executable file

Binary file not shown.

View file

@ -29,5 +29,8 @@
"scripts": {
"npm:publish": "npm publish --registry https://npm.sudovanilla.org/",
"test": "cd test/ && bun start"
},
"devDependencies": {
"sass-embedded": "^1.80.6"
}
}

Binary file not shown.

View file

@ -3,10 +3,10 @@ import {
Document
} from '../../../'
import Sidebar from '../../../src/components/Sidebar.astro'
---
<Document
SiteName="Hello"
>
<Document>
<slot/>
</Document>

View file

@ -1,22 +1,19 @@
---
import { type CollectionEntry, getCollection } from 'astro:content';
import { type CollectionEntry, getCollection } from 'astro:content'
export async function getStaticPaths() {
const documents = await getCollection('docs');
const documents = await getCollection('docs')
return documents.map((document) => ({
params: { slug: document.slug },
props: document,
}));
}))
}
type Props = CollectionEntry<'docs'>;
type Props = CollectionEntry<'docs'>
const document = Astro.props;
const { Content } = await document.render();
const document = Astro.props
const { Content } = await document.render()
import Document from "../../layouts/Document.astro"
import { Document } from '@sudovanilla/butterflyvu'
---
<Document>