sphinx-design icon indicating copy to clipboard operation
sphinx-design copied to clipboard

better way to set img src file for an avatar?

Open solarslurpi opened this issue 1 year ago • 2 comments

Please consider modifying the Getting Started documentation to discuss css classes and using the html path for the image. i.e.: not only needed "colon_fence" but also "html_image" . I noticed other myst extensions that also might be needed based on the conf.py used in the example? (not sure).

Thank you very much for your amazing work. Please find many things to smile about.

Discussed in https://github.com/orgs/executablebooks/discussions/878

Originally posted by solarslurpi November 19, 2022 Hello,

  • I extended my sphinx environment to include [sphinx-design].

I am using avatars.

I write sphinx docs in markdown.

I usually set an image like:

```{image} images/ebp-logo.png
:align: left
:scale: 20

using images/ebg-logo.png works for the path.

the only way to get the avatar to find the image was to use a full path. e.g.:

<img src="http://127.0.0.1:8000/_images/ebp-logo.png" class="sd-avatar-md sd-border-2">

Is there something I am missing/doing wrong? Thank you.

solarslurpi avatar Nov 20 '22 14:11 solarslurpi

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Nov 20 '22 14:11 welcome[bot]

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

welcome[bot] avatar Feb 15 '23 16:02 welcome[bot]