executablebooks / sphinx-design

A sphinx extension for designing beautiful, screen-size responsive web components.
https://sphinx-design.readthedocs.io/en/furo-theme/
MIT License
197 stars 60 forks source link

better way to set img src file for an avatar? #122

Open solarslurpi opened 1 year ago

solarslurpi commented 1 year ago

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](https://sphinx-design.readthedocs.io/en/furo-theme/css_classes.html#avatars). I write sphinx docs in markdown. I usually set an image like: ``` ```{image} images/ebp-logo.png :align: left :scale: 20 ``` using i`mages/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.: ```{grid-item-card} ``` Is there something I am missing/doing wrong? Thank you.
welcome[bot] commented 1 year ago

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] commented 1 year ago

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: