update
This commit is contained in:
parent
19e8a238ac
commit
367bb8cba6
5 changed files with 13 additions and 13 deletions
BIN
bun.lockb
Executable file
BIN
bun.lockb
Executable file
Binary file not shown.
|
@ -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"
|
||||
}
|
||||
}
|
BIN
test/bun.lockb
BIN
test/bun.lockb
Binary file not shown.
|
@ -3,10 +3,10 @@ import {
|
|||
Document
|
||||
} from '../../../'
|
||||
|
||||
import Sidebar from '../../../src/components/Sidebar.astro'
|
||||
|
||||
---
|
||||
|
||||
<Document
|
||||
SiteName="Hello"
|
||||
>
|
||||
<Document>
|
||||
<slot/>
|
||||
</Document>
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue