-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
additionalPages plugin option does not support async function #1077
Comments
This should actually be a feature request, since vuepress doesn't state it supports remotely loading pages like this currently. When are you expecting the markdown file in your example to be consumed? At build? Or when you request the page? |
Well, it's is in the docs so i was expecting this to work. The plugin should load the content during build and then the page is available just like a local page. I actually need this to add additional local pages backed by existing markdown files, but in a async way. More precisely just like it is done here only that the pages reside in a different source folder. I already worked on a fix that enables async functions, which i can provide shortly. |
My bad, didn't notice the exact async example you used was from the docs. >.< |
Bug report
Trying to use an async function for
additionalPages
as described in the docs crashes with the following error:Version
v1.0.0-alpha.27
Steps to reproduce
./docs/.vuepress/plugins/pages.js
echo "# Dummy" > ./docs/README.md
vuepress build ./docs
What is expected?
The build runs without error and the additional pages are available
What is actually happening?
The build crashes. See the error above.
Other relevant information
The text was updated successfully, but these errors were encountered: