ansible-documentation icon indicating copy to clipboard operation
ansible-documentation copied to clipboard

Add 'type' hover/popup to type fields

Open bcoca opened this issue 3 months ago • 2 comments

Aside from having a page describing how the data types work in Ansible we should enable a hover/pop up so those looking at the options in docs can see the description right by where the type fields are indicated.

For example:

name: x
description: random
type: list
...

would have a hover/pop up that would display A series of elements that can be defined as a Python, YAML or JSON formats or as a comma separated string

bcoca avatar Sep 11 '25 17:09 bcoca

Discussed in DaWGs and consensus was that it needs to be compatible with screen readers.

Also, as this is anstibull-docs - should we move to that repo @felixfontein ?

samccann avatar Sep 30 '25 15:09 samccann

Moving this to the antsibull-docs repo sounds good to me.

I'm wondering a bit how this should be implemented, though. Also there's not only screen readers to consider, but also touch devices, which don't have hover either.

felixfontein avatar Sep 30 '25 19:09 felixfontein