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

Best practice for constructing image links #1904

Closed
michaelmcandrew opened this Issue Jan 7, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@michaelmcandrew

michaelmcandrew commented Jan 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!

@agjohnson

This comment has been minimized.

Show comment
Hide comment
@agjohnson

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.

Contributor

agjohnson commented Jan 9, 2016

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.

@michaelmcandrew

This comment has been minimized.

Show comment
Hide comment
@michaelmcandrew

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,
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.

@agjohnson

This comment has been minimized.

Show comment
Hide comment
@agjohnson

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.

Contributor

agjohnson commented Jan 12, 2016

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.

@michaelmcandrew

This comment has been minimized.

Show comment
Hide comment
@michaelmcandrew

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment