Skip to content
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

Image relative paths aren't working correctly #1237

Closed
mickmuzac opened this issue Apr 28, 2015 · 4 comments
Closed

Image relative paths aren't working correctly #1237

mickmuzac opened this issue Apr 28, 2015 · 4 comments

Comments

@mickmuzac
Copy link

I've scoured the documentation for both RTD and Mkdocs looking for relevant information, but I've been unsuccessful so far. Locally, mkdocs build and mkdocs serve run without errors and serve everything correctly, including images.

On the live RTD page, image URLs contain an extra up directory ../ resulting in the image not being found. I could potentially fix this by moving the images to a parent directory, but then that will break the images on Github and on my local machine.

Here are the docs and the corresponding Markdown source:
http://sandboxdocs.readthedocs.org/en/latest/User%20Guide/terrain/index.html
https://github.com/adlnet/SandboxDocs/blob/master/docs/User%20Guide/terrain.md

The image at the top has this generated image tag:

<img alt="" src="../.././images/terrain/terrain.htmlcd_Image0.png">

from Markdown that looks like this:

![](./images/terrain/terrain.htmlcd_Image0.png)

This seems to be a bug. The ONLY reason the image seems like it's being properly loaded is because I copied my entire image directory up to its parent directory.

@d0ugal
Copy link
Contributor

d0ugal commented May 27, 2015

This is probably because ReadTheDocs are on an old version of MkDocs. I am fairly sure this has been fixed downstream.

There are some compatibility issues with upgrading that I am working on.

@ericholscher
Copy link
Member

Closing this as a mkdocs issue. It should be fixed with an upgrade happening soon.

@mickmuzac
Copy link
Author

Is there anywhere I can go to get news about this pending update?

@d0ugal
Copy link
Contributor

d0ugal commented May 28, 2015

You can follow along in my downstream issue. mkdocs/mkdocs#554

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants