Closed shayandavoodii closed 1 month ago
You are probably trying to display an image in the markdown https://github.com/shayandavoodii/OnlinePortfolioSelection.jl/actions/runs/8895424510/job/24425728076#step:6:47 which doesn't exist in that path
which doesn't exist in that path
Which path?
I got it. This one assets/cumulative_budgets.png
you meant.
You are probably trying to display an image in the markdown https://github.com/shayandavoodii/OnlinePortfolioSelection.jl/actions/runs/8895424510/job/24425728076#step:6:47 which doesn't exist in that path
I changed the path from assets/cumulative_budgets.png
to:
<img src="src/assets/cumulative_budgets.png" width="100%">
For GitHub actions, the former error exists as before.
Locally, when I want to build the documentation, I get the following 404 Error:
That won't work, this looks like some kind of path error. Am looking into it locally.
Specifically, Vitepress is looking in ../assets
when it should be looking in assets
.
@shayandavoodii it looks like you're using a pretty strange way of including images. That's why the loading doesn't work (that plus your HTML tags weren't closed).
In this case, you should include your images in the standard Markdown format:
![alt-text](path/to/image)
and it will work automatically.
I've tested that on my machine and the docs seem to build fine.
Can you test that and get back as to whether it works or not for you? If so then I can close the issue here.
Thank you so much. I used ![alt-text](assets/performance_eval.png)
in the docs\src\performance_eval.md
and ![alt-text](assets/cumulative_budgets.png)
in docs\src\index.md
. Yet, the 404 error is shown when I try to test it locally. What's the problem?
However, it seems that the problem is solved on GitHub actions: https://github.com/shayandavoodii/OnlinePortfolioSelection.jl/actions/runs/8900200497/job/24441242896#step:6:56
Might be because of the base
URL that's set when dev'ing locally.
Could you please help me with this error: https://github.com/shayandavoodii/OnlinePortfolioSelection.jl/actions/runs/8895424510/job/24425728076#step:6:54 Here is the link to the related branch: https://github.com/shayandavoodii/OnlinePortfolioSelection.jl/tree/Vitepress
This is the error I got when I tried to build the docs locally: