Replies: 1 comment
-
Unfortunately there is no direct way. Although there might be some alternatives like copy that file to output directory after build, or maybe instead of configuring srcDir, configure rewrites, then you can have root/public/images 👀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my
config.mts
I have the following:As you can see I have used the
srcDir
property to move the root of my MD content to<project-root>/src
. I did this because I want to isolate the site directory structure and not mix them in with the other files and dirs in the<project-root>
.Unfortunately, in order for vitepress to find the
logo.svg
file, it apparently has to be here:<project-root>/src/public/logo.svg
I have tried moving the file to
<project-root>/images/logo.svg
(where the rest of my images reside) and adjusting theconfig.mts
toBut vitepress does not seem to find the file.
Is there some way to set the
logo
property so that I can place mylogo.svg
file outside<project-root>/src/public/
(and, indeed, outside<project-rrot>/src/
entirely)?Beta Was this translation helpful? Give feedback.
All reactions