-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Index Page" feature #794
Comments
This is done using the "static data import" feature: https://github.com/vuejs/docs/blob/main/src/api/api.data.ts I believe it's not fully documented at the moment, but essentially:
The data loader file is only executed at build time - the module is directly transformed into inlined JSON. |
Hi, I've tried to follow the documentation at Build-Time Data Loading, and after some problems I reallized that if I use the <script setup>
import { data } from './example.data'
console.log(data)
</script> I'd like to ask for a clarification on the documentation site, and also some lines explaining where should the Regards |
Today I met same issue as you mentioned. Based on stupid tries, here are some experience (but I don't know why):
|
Let's track #2699 here itself. |
It seems that this has been addressed with the documentation added about data-loading, especially the section on createContentLoader I think this bug can be closed. |
It would be great to have index page where it lists all subpage headings like Vue.js API page.
This feature would be especially useful for pages like API and config references. The idea is to fetch crawl pages based on sidebar menu structure, and list all headings with in the page, separating them into each section (box in Vue.js API example).
Not 100% sure how Vue.js website is doing this at the moment, but we should first come up with good API design (how to configure this page).
The text was updated successfully, but these errors were encountered: