Closed ElMassimo closed 2 years ago
✔️ Deploy Preview for iles-docs canceled.
🔨 Explore the source changes: c8755a88f57bc2945c8bcc3e3626701c3972e877
🔍 Inspect the deploy log: https://app.netlify.com/sites/iles-docs/deploys/61be5a1e7eee0d000802f01d
✔️ Deploy Preview for the-vue-point-with-iles canceled.
🔨 Explore the source changes: c8755a88f57bc2945c8bcc3e3626701c3972e877
🔍 Inspect the deploy log: https://app.netlify.com/sites/the-vue-point-with-iles/deploys/61be5a1eace8570007fd0d26
Latest commit: |
c8755a8
|
Status: | ✅ Deploy successful! |
Preview URL: | https://9d277884.iles.pages.dev |
Description 📖
This pull request adds a new
useDocuments
composable that can be used to get a reference to local files, and read theirfrontmatter
andmeta
, as well as render them as components.You can use the experimental ref sugar if you need to access it in scripts (for example, to sort the documents):
Provide a glob pattern if you need to narrow down the results:
Features ✨
import.meta.glob
, frontmatter is cached and reusedHMR 🚀
frontmatter
are instantly reflectedTypescript 💪🏼
The API is fully typed, and all the
frontmatter
andmeta
properties will show up including any extensions you have added inPageMeta
orPageFrontmatter
.Screenshots 📷