Closed matteopilz closed 1 year ago
By the way, I am very sorry for ruining the PR a bit. But the changes in the codeblocks were necessary for blacken to run through.
So, I was thinking about glossary terms a bit more yesterday. Ad since no one has any opinion, I am deciding that we do the glossary as follows:
ABBR1
ABBR2
..
full term1
full term2
Full term (ABBR1 or also ABBR2, ...) is a foobar
Then in the text:
Talking about :term:`full term1` (:term:`ABBR1`) will help users.
In the rest of the text we will only call it :term:`ABBR1`.
I'm not sure if we then would have to add definitions for all of them: ABBR1
, ABBR2
, full term1
and full term2
.
Because for ABBR1
it will probably only show ABBR1
when hovering over it.
Did you try?
I don't know how, when I build it locally, the hover references do not work.
See docs: https://sphinx-hoverxref.readthedocs.io/en/latest/development.html
But I tried and read the docs is bugged..
Then I guess we don't have another choice right now but include only 1 term in the glossary and reference it with e.g. :term:MS<mass spectrometry>
.
No I vote for reordering with the abbreviations on the bottom and then always use the last term for referencing.
But didn't your picture show, that the hover references won't be working then?
If you link to any non-last terms, yes
Why do you want to include the other terms before that then?
For the future so we can switch, as soon as the bug is fixed.
Ok, works for me.
I think it is not too often that we have this case. So it should be fine.
Are you doing the glossary separately? It seems like the terms are now capitalized right?
I would do it in a different PR now. I hanged it back to lowercase, but adding the term references would make this PR a bit too convoluted.
I will merge but we should fix the terms ASAP. Many of them will not work anymore.
Add cross references to the documentation. Additionally, we can also include terms or make a new PR for that.