sphinx-tippy
sphinx-tippy copied to clipboard
Wiki links with different languages
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)
.