sphinx-extensions2 / sphinx-tippy

Get rich tool tips in your sphinx documentation!
https://sphinx-tippy.readthedocs.io
MIT License
33 stars 4 forks source link

Wiki links with different languages #10

Open yves-chevallier opened 11 months ago

yves-chevallier commented 11 months ago

I am writing a documentation in french and I notice Wikipedia links don't work. To test that I tried the following code, and only the second link works:

:::{list-table}

-  - [Ken Thompson](https://fr.wikipedia.org/wiki/Ken_Thompson)
-  - [Ken Thompson](https://en.wikipedia.org/wiki/Ken_Thompson)

:::

This is because WIKI_PATH is hardcoded in English: https://github.com/sphinx-extensions2/sphinx-tippy/blob/cca8ea804fba5a7dde52a6d2d4d00eb191acd825/src/sphinx_tippy.py#L206

It would be nice to either store the whole URL for simplicity or use a tuple for wiki_titles: (title, language).

dbitouze commented 6 months ago

Duplicate of #7.