Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upBest practice for constructing image links #1904
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
agjohnson
Jan 9, 2016
Contributor
This sounds like a queation for mkdocs, we don't do anything special here. I'm not familiar enough with mkdocs to answer, but seems like relative paths should be fine.
Closing this as this isn't an issue with RTD.
|
This sounds like a queation for mkdocs, we don't do anything special here. I'm not familiar enough with mkdocs to answer, but seems like relative paths should be fine. Closing this as this isn't an issue with RTD. |
agjohnson
closed this
Jan 9, 2016
agjohnson
added
the
Status: invalid
label
Jan 9, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
michaelmcandrew
Jan 12, 2016
Thanks @agjohnson,
Do you think this could / should be documented in https://docs.readthedocs.org/en/latest/index.html? I couldn't find anything there, or in mkdocs on the subject. Might be obivous to some but would also avoid some head scratching if a recommended way to do it is explicitly documented.
michaelmcandrew
commented
Jan 12, 2016
|
Thanks @agjohnson, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
agjohnson
Jan 12, 2016
Contributor
I don't think it needs to end up in our docs, where it will most certainly rot. Mkdocs would again be the best location for this information if anything, we do nothing with special with paths here.
|
I don't think it needs to end up in our docs, where it will most certainly rot. Mkdocs would again be the best location for this information if anything, we do nothing with special with paths here. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
michaelmcandrew
Jan 12, 2016
OK - sounds like it is too obvoius. Fairly sure it is the same / similar in mkdocs so won't pursue this any further.
michaelmcandrew
commented
Jan 12, 2016
|
OK - sounds like it is too obvoius. Fairly sure it is the same / similar in mkdocs so won't pursue this any further. |
michaelmcandrew commentedJan 7, 2016
I can't find any documentation on the right way / best practice for referencing images on rtd (with markdown). I have a manual that i have 'imported' https://github.com/civicrm/civicrm-user-guide and I am cleaning up the image links.
Currently all images are in docs/img. what is the best way to reference an image from for example docs/advanced-configuration/logging.md?
I am presuming that ../../img/image.png would be best (esp. if we are doing stuff like having multiple versions and languages on the same domain) but wanted to check in case there is some rtd magic that I can / should take advantage of.
Thanks!