-
Notifications
You must be signed in to change notification settings - Fork 100
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
Wrap annotations with an html tag #395
Comments
PR welcome. |
I would like to, but I don't know where to begin 😅 |
Should I be able to acheive this with |
I did a similar thing in sphinx-js. It's largely a limitation of restructured text / the way that sphinx works. What I did is
I'm not sure if this is the best way, it feels a bit hacky but this was the best way I could figure out to make it work. You can see the result here: all the types have this css wrapper. If you adjust the css for |
Thanks for the comments! After some investigation I realized that as you point out I have to go too deep into sphinx to implement this and I think it's not worth it for me to spend time on. I thought it would be easier, I didn't know the inner workings of sphinx were so complicated 😅 |
I can try to do this when I get around to it. I think it's a very helpful feature. |
Agreed 👍 |
Resolves issue tox-dev#395
Resolves issue tox-dev#395
Resolves issue tox-dev#395
By the way I wonder if it would make more sense to contribute this to |
Their style of choice is different. Both packages can coexist. |
Resolved by #397. |
Is it possible to wrap the annotation in some custom html tag?
I want to style the whole annotation to have the same background, but looking at the generated HTML it looks like an unnecessarily daunting task, with parenthesis and commas being just text and merged with the description text. This is
Union[str, int]
:which results in background changes for
[
,]
and,
making it very hard to read:The text was updated successfully, but these errors were encountered: