Skip to content
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

[Bug]: Tool tips image error #92

Closed
3 tasks done
Mara-Li opened this issue Jan 25, 2023 · 1 comment
Closed
3 tasks done

[Bug]: Tool tips image error #92

Mara-Li opened this issue Jan 25, 2023 · 1 comment
Assignees
Labels
📫 Material Mkdocs Template Discussion about the mkdocs template

Comments

@Mara-Li
Copy link
Member

Mara-Li commented Jan 25, 2023

Issue validation

Workflow

Mkdocs Template 🐍

Describe the bug

If site_URL is a subdirectory, tippy fail to load image

How to reproduce ?

No response

Configuration

/

Relevant log output

\

OS

IOS, Android, MacOS, Windows, Linux

Anything else?

No response

@Mara-Li Mara-Li added bug 📫 Material Mkdocs Template Discussion about the mkdocs template labels Jan 25, 2023
@Mara-Li Mara-Li self-assigned this Jan 25, 2023
@Mara-Li
Copy link
Member Author

Mara-Li commented Jan 25, 2023

(I'm stupid and forgot to reply)
@clutterwhy (because of a bug, the conversation disappear)

Found an elegant solution. The bug was caused by github page. In fact, I used previously the location.origin, that was wrongly set to clutterwhy.github.io, forgetting the mkdocs-publisher part.

With editing the overrides/partials/meta.html and adding this line : <meta property="site_url" content="{{ config.site_url }}">, I can use the real config site_url, so it will fetch the good URL.

So, you need to update/grab the last update of :

  • assets/js/wiki_hover.js
  • overrides/partials/meta.html

@Mara-Li Mara-Li closed this as completed Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📫 Material Mkdocs Template Discussion about the mkdocs template
Projects
None yet
Development

No branches or pull requests

1 participant