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": { "scripts": {
"npm:publish": "npm publish --registry https://npm.sudovanilla.org/", "npm:publish": "npm publish --registry https://npm.sudovanilla.org/",
"test": "cd test/ && bun start" "test": "cd test/ && bun start"
},
"devDependencies": {
"sass-embedded": "^1.80.6"
} }
} }

Binary file not shown.

View file

@ -3,10 +3,10 @@ import {
Document Document
} from '../../../' } from '../../../'
import Sidebar from '../../../src/components/Sidebar.astro'
--- ---
<Document <Document>
SiteName="Hello"
>
<slot/> <slot/>
</Document> </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() { export async function getStaticPaths() {
const documents = await getCollection('docs'); const documents = await getCollection('docs')
return documents.map((document) => ({ return documents.map((document) => ({
params: { slug: document.slug }, params: { slug: document.slug },
props: document, props: document,
})); }))
} }
type Props = CollectionEntry<'docs'>; type Props = CollectionEntry<'docs'>
const document = Astro.props; const document = Astro.props
const { Content } = await document.render(); const { Content } = await document.render()
import { Document } from '@sudovanilla/butterflyvu'
import Document from "../../layouts/Document.astro"
--- ---
<Document> <Document>