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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions