-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
How to configure the build directory of vitepress ? #171
Comments
Are you talking about the It's hardcoded @ |
Sure |
Hi @harlan-zw just curious if there is a reason why this is not supported in vitepress unlike vuepress? Does not necessarily seems like a difficult thing to do unless I missed something? Having this config would be great where a vitepress site's source files and build output can be in the same github repo and use github pages for hosting, unlike the solution in the docs which requires another repo just for the output. If this is something that is reasonable, let me know and perhaps I can submit a PR? Thanks! |
Hey @Jaimeloeuf, this is a pretty outdated issue and I haven't touched vitepress too much since it was raised. Having a quick glance at the code though, it seems like there is now a https://github.com/vuejs/vitepress/blob/main/src/node/config.ts#L69 |
Hey @harlan-zw thanks alot for getting back to me on this old issue! Looking through the code, although there is a Line 118 in 6085501
Also the other thing I noticed is that this prop is on the Since the Let me know, thanks a lot! |
Nice investigating @Jaimeloeuf I know that VitePress aims to be simple and opinionated in how it's built, saying that it seems like a useful feature and can't imagine it would be that much work. I don't have much control over what will and won't get merged but submitting a PR seems like a good idea if you have some time to work on it. |
For reference, see vuejs#171. outDir existed on SiteConfig but not UserConfig. Updates UserConfig to accept an optional outDir and resolve it the same way vitepress resolves srcDir. The original .vitepress/dist behavior is provided as fallback if no user-provided outDir is present.
Hi, I have opened a PR to add this option to the UserConfig. Please see #448 and leave any feedback you have. Hopefully the maintainers see the value and decide to add it. |
Hey @Mando75 thanks alot for the help! Got abit busy and appreciate it, hope this gets merged soon :) |
FYI, my PR was merged in release |
No description provided.
The text was updated successfully, but these errors were encountered: