Delivering static assets from source directory #3708
-
Hello everyone, is there any way to serve files that are within the source dir as static assets? I have a pre-existing git repo containing documentation of our work projects in MD files. My goal would be to just dump that repo into the src directory so the MD files are rendered as html and any links to the scriptfiles would enable the users to download the according files. It works so far that the MD files are rendered as expected. But that would mean that i have to copy all of them over there on each build, either by hand or automatically. Another option I see would be to just copy the files without structure and changing all the links in my Markdown documents, but i don't like that solution even less because I'd like to avoid changing the original repo as less as possible. So is there any way to tell vitepress "Anything in the src dir thats not an .md, is a static asset"? Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Has anyone some idea? |
Beta Was this translation helpful? Give feedback.
Copying with correct directory structure is the only way IMO: