Skip to content

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

Description

@solarslurpi

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.

Activity

  1. welcome commented on Nov 20, 2022

    @welcome

    Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

    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! 🎉

  2. welcome commented on Feb 15, 2023

    @welcome

    Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

    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! 🎉

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions