Openrefine: Our documentation needs some design tweaks

Created on 11 Aug 2020  路  11Comments  路  Source: OpenRefine/OpenRefine

Our Docusaurus install (https://docs.openrefine.org/) needs some customization. Guides and tools are here:
https://v2.docusaurus.io/docs/styling-layout

My preferences:

  • more negative space, especially above a new section header (margin-top of 60-80px would be great)
  • more space between the sections in the TOC sidebar, perhaps less space between the h3-equivalent list items
  • slightly bigger header sizes
  • images should be centred within the article
  • text inside infoboxes should be the same colour as the rest of the text (i.e. black in normal mode, white in dark mode)
  • better colours for the infoboxes, within the limits of accessible contrasts (and taking light/dark modes into account)

Please share your own preferences!

Describe the solution you'd like
For infoboxes, it appears they're very sparingly used in other docs, and almost nobody is using more than one kind. So, we might want to follow their example and pick only one type to use for everything. Colour-wise, something desaturated works for me. Nothing so bold that you eyes go to that information first, to the detriment of the rest of the text.

A few examples:

documentation enhancement good first issue help wanted

Most helpful comment

It seems we're leaning towards the Vector-style of a coloured stripe instead of a full infobox fill. Their code will also teach us how to do light/dark mode boxes.

All 11 comments

Another idea: using a dedicated style to refer to UI text (such as menu items). This could be done with inline <span> tags which would be styled appropriately.

It seems we're leaning towards the Vector-style of a coloured stripe instead of a full infobox fill. Their code will also teach us how to do light/dark mode boxes.

So, the to-do list as agreed:

  • <span> or other styles to designate

    • UI menu items and options

    • GREL functions

  • one infobox styled in the spirit of Vector's docusaurus install (or maybe two: a generic one and a caution / troubleshooting one)
  • more negative space, especially above a new section header (margin-top of 60-80px would be great)
  • more space between the sections in the TOC sidebar, perhaps less space between the h3-equivalent list items
  • slightly bigger header sizes
  • images should be centred within the article

Hello, I would like to work on this issue. Can you please assign this issue to me?

That would be great, thanks!

This could be a good page to demo things on - there are two infoboxes on there, some code, a few images, and I think some menu items or other buttons ("Browse workspace directory" and etc) that you could try to style to make them distinctive.
https://docs.openrefine.org/manual/installing/

@allanaaa I have a few questions:

  1. More negative space, especially above a new section header: Is it the space above each H2 header, for instance in https://docs.openrefine.org/manual/installing/ page, space above -- System requirements, Installing or upgrading, Increasing memory allocation, Installing extensions?

  2. Slightly bigger header sizes - is it for all the headers H1, H2, H3 ? or any header in particular?

  3. Few ideas for styling the UI menu items and options,
    a. Similar to styling as used for webapp\extensions, but with a blue background.
    b. Changing the font just for the menu items.

Thanks

  1. I would increase the space above H2s and H3s. Maybe a small increase above H3s and a bigger space for H2s. But if you try it on the H3s and it looks bad, feel free to remove it.

  2. I would do all headers in use, which I think is up to H4. I find H4s in particular quite hard to see, e.g. https://docs.openrefine.org/manual/installing/#compatible-operating-system

  3. I think option A sounds like it could be good! I don't like to change up fonts, but I'd be interested in seeing some examples.

Yes, the blue background gives a distinct style especially in the dark mode, I have attached a screenshot, please let me know which would be better.

MenuItemsStyle

MenuItemsStyleDark

I like the blue-background span. Thoughts, @wetneb @thadguidry @ostephens?

I suggest we should keep our documentation more formal and without many design tweaks. The blue background span or the border fill are really taking away the look of the page and diverting the complete attention to themselves. Seeing it as an Official Documentation of OpenRefine, it doesn't look nice to have span background fills.
If we want to highlight any UI related part we can use tooltips with slight underlining as used by Kubernetes or RedHat documentation.
What I would rather suggest is to have a nice landing page with documentation explorer as in the docs for Mozilla dev tools, firefox or any other product.
Moreover, IMO, we need some documentation guidelines, going through the documentation I have seen capital letter appearing for words in the middle of a sentence or use of grammatical punctuations.
These are my opinions, ultimately being a community-driven project we need to consider more opinions concerning the style tweaks.

/cc @wetneb @ostephens @thadguidry

Yes we have already removed the blue background in the corresponding PR #3178 - the discussion is happening there.

Was this page helpful?
0 / 5 - 0 ratings