Any way to set image path as absolute path inside DocumentRoot
?
#12200
Replies: 1 comment
-
not a issue, Not quite sure what was written wrong in the previous test when it didn't work, but now it's already possible to use absolute paths directly under DocumentRoot. |
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
-
I want to use images and videos. But don't want to put these files into source because they are too many and too big. Instead, I want to link them to a static path under outdir.
Have Tested it and it works, i.e. you need to set the path of the image or video to a relative path with respect to outdir
build/html
.issue
But the problem is, if the source file relative location has changed, for example, originally located in
source/1/2/text.rst
, now becomesource/1/2/3/text.rst
. You need to enter the file to modify the relative path( add../
to the image path ). Otherwise, you can't load videos and pictures.Therefore, if one can directly set the image or video path is relative to the output path
build/html
, i.e., the absolute path of the website DocumentRoot, one can solve the problem without having to pay attention to the change of the location of the source files.can set?
Beta Was this translation helpful? Give feedback.
All reactions