-
Notifications
You must be signed in to change notification settings - Fork 29
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
Responsive parameter/... tables #335
Responsive parameter/... tables #335
Conversation
Example RST file: https://gist.githubusercontent.com/felixfontein/e081fb315e166089e96f923dd997b2ba/raw/9cd10b94d6deecd580d36b2fa255b75525c2520c/hashi_vault_lookup.rst (GitHub does not render the list-table: https://gist.github.com/felixfontein/e081fb315e166089e96f923dd997b2ba) |
|
This now covers all tables and is ready for review / public judgement :) |
0bb094e
to
73d20b9
Compare
(This PR includes #336, will rebase once that - or some equivalent - is merged.) |
I have mixed feelings.
Question: does using RST tables allow |
That's easy to change.
Which borders do you mean?
I don't know whether that was considered or not, but I also think it's better to move them to the left column.
Yes. (Since everything is RST now.) |
|
73d20b9
to
659a2bc
Compare
So I also like the idea of using the left column a tiny bit more. Definitely adding aliases there seems to make sense to me. I wonder if the non-choices default value would be better in that left column as well? We don't want to overload it, but one or two important additions might be enough? And love the responsiveness now! |
@briantist yes I know that, but where do you want borders? |
I'm not sure there is a place for borders once they 'disappear'. At that point, it's no longer a table, it is a list. The top of the list is the module name/short description in a gray box, then all parameters are listed below that. Unless we're talking about just adding a box around the whole thing? |
…he print / to JSON logic works properly (and is a valid sample).
659a2bc
to
0fa8778
Compare
fwiw I've share this PR with a few teams to garner feedback since it's a significant change (shrinking out some columns). Should we also post it on the #ansible user chat channels and maybe reddit? or one of the email lists for ansible? |
I see; well truthfully I'm not sure where to put the borders (or even if that's the right thing to do). I suck massively at design, so I'm more just reporting that I "feel" the lack of the borders; that sense of separation and distinctiveness and the visual separation is gone. I don't know how to best address that. But I'll also stress again, I personally am very unlikely to ever see that collapsed design naturally in my own use of the docs, so I'm not the target audience and my opinion on it should be taken with a grain of salt... hopefully we'll get more feedback from folks who are more accustomed to reading on small screens/layouts! Also just a massive "thanks" for thinking about this stuff and putting the work in; I don't want to sound like I'm being too negative :) |
Posted to the user chat channel, ansible-project email list, and on reddit to solicit feedback. |
comment from irc/matrix user jaqque - "i like the layout. i appreciate that it no longer has a horizontal scroll for the options table. as I don't write the docs, i have no pony in the RTS race" |
…llows to refer to them from scenario guides.
If nobody complains, I'll merge this by tomorrow morning and create a new release of antsibull so we can see how this looks in the devel docs. (This is basically what we decided at today's DaWGs meeting.) |
The only thing I noticed in the auth method example above (which I don't think is related to this change now) is that the font size of "Configuration" seems smaller than the text below it (INI entries). Maybe there is an opportunity to use font sizes and bold to better suggest the hierarchy of information within the box |
@cidrblock it's partially related, since I tried to use similar styles as before. I'm open to suggestions on how to format this better; I'm not good at designing :) |
@felixfontein I wonder if it's the ansible-minimal css theme used on your test site? This is what inspection shows me |
I've added a commit and updated my docsite with it which removes the |
Let's discuss this again at today's DaWGs meeting, and if everyone's happy enough with the current layout, let's merge. |
As discussed in today's DaWGs meeting, I'll merge this now, and this is going into an antsibull release in a couple of days (together with #341 and maybe some more). Then we can create a PR for ansible/ansible to bump the known good version of antsibull for the devel docs build, publish its result to the test docs page, and gather potential more feedback before integrating this into the devel docs. |
@briantist @samccann @acozine @cidrblock and everyone else who provided feedback, thanks a lot! |
This PR's aim is to convert the HTML blobs to proper RST tables. Well, with still some HTML interspersed so that a) they look good and b) we can do some responsiveness.
The first step is to reduce all tables to two columns, and to convert them to RST. All tables (plugins/modules and roles parameters and return values) are two columns, but only the plugins/modules tables are fully RST currently. The rest will follow.
There's also no CSS collapse from table to 'flat view' (for narrow width devices) yet.
Some pages to compare:
A regular module with few suboptions:
A lookup plugin with a lot of configuration:
The worst recursion we know of: