mckinsey / vizro

Vizro is a toolkit for creating modular data visualization applications.
https://vizro.readthedocs.io/en/stable/
Apache License 2.0
2.47k stars 111 forks source link

[Docs] Edit docs for readability part 1 #337

Closed stichbury closed 4 months ago

stichbury commented 4 months ago

Description

This is the first of several PRs to work through the docs for readability and improve consistency.

In this one, I've done this:

Please take a look through at the built docs since the edits are going to be horrid to read .

I'd particularly like feedback on section 3 as I rewrote that and added some new material about parameters/selectors. I also fixed a "bug" in the code where it was applying the second opacity parameter to both charts (when the docs said only the first chart).

Notice

stichbury commented 4 months ago

Thanks @huong-li-nguyen !

You've been very diligent and applied some of the edits I made to pages I haven't reached yet. Thanks for doing that, but don't worry too much on those pages...I'll get there eventually.

  • These nested admonitions look a bit funky to me - are these intended?

I did intend them, yes. Let's see what people think. I wanted to put side-information in the aside, but then found there was side-information about the side-information (like how to install pipenv if you don't want to use conda). I thought they looked OK but let's see what the general view is. I can always remove them!

  • I've noticed that you've used "How to..." in several sections now. I actually don't have any issues with that, but I remember that we used to follow a guideline to not use How to that often, but only in the first title. I think it came from this docs guideline that @maxschulz-COL sent you as a link? Happy to follow with whatever you think is best though

  • I left some suggestion where I wasn't sure why we kept it capitalized Ah, that's because I've just corrected the subheads for now rather than all the sections for the admonitions, except where I did the line edit in the Get Started section. I didn't want to make the PR too big in terms of diffs to review but then I guess it means the built docs look weird where I haven't edited in full. Thanks for catching 🎈

Joseph-Perkins commented 4 months ago

For the "How to..." sections, I think the decision process around them before was related to how they affect the sub-navigation menus. In cases where people might want to quickly run their eyes down a list of topics in a menu, to decide what to click on for finding out more information, then it seems easier to run eyes over the list and take in information when the "How to" part is not included

However when acting as a section header in the main body of the documentation, then having the "How to" prefix can be more informative to readers

So I suppose our decision making criteria would be on a case-by-case basis, depending on which navigation menu the title is being used in, and how important it is to be able to run eyes down that quickly

stichbury commented 4 months ago

So I suppose our decision making criteria would be on a case-by-case basis, depending on which navigation menu the title is being used in, and how important it is to be able to run eyes down that quickly

That makes sense. The docs have great structure per the diataxis model (they're all "How to" guides) but they're called 'User guides' in the navigation and I think we need to clarify that they are practical content rather than reference/theoretical explanations. I'll pay some attention to where the "How to" is showing up to keep the scan overhead for the user to a minimum.

I wonder if we should rename the section from User guides to How to guides on the card and the top horizontal nav.

WDYT? @maxschulz-COL

maxschulz-COL commented 4 months ago

So I suppose our decision making criteria would be on a case-by-case basis, depending on which navigation menu the title is being used in, and how important it is to be able to run eyes down that quickly

That makes sense. The docs have great structure per the diataxis model (they're all "How to" guides) but they're called 'User guides' in the navigation and I think we need to clarify that they are practical content rather than reference/theoretical explanations. I'll pay some attention to where the "How to" is showing up to keep the scan overhead for the user to a minimum.

I wonder if we should rename the section from User guides to How to guides on the card and the top horizontal nav.

WDYT? @maxschulz-COL

Yes, so as Joe said, we tried to keep the scan to a minimum and I still prefer that It think. It just makes scanning the table of content so much easier.

That being said, we also had it as an overall page header, so that the reader knows immediately what he is going to be taught. That sentence is always a general overview and could potentially be improved/extended:

Maybe we link to the individual sections in that first sentence? That could combine the how-to style with short and crisp header for the sections.

I am neutral about the user guide to how-to guides. Probably "How to" is even better, so happy to change it!

astrojuanlu commented 4 months ago

GitHub tells me that I've been mentioned in this PR but I don't see where πŸ˜…

stichbury commented 4 months ago

GitHub tells me that I've been mentioned in this PR but I don't see where πŸ˜…

@astrojuanlu Thanks for dropping by! πŸ‘‹

Lol, it was here: https://github.com/mckinsey/vizro/pull/337/files/ddce1007f8007f45cc21afe65b75d183fe418ff9#r1505838867

image

We were wondering if the instructions in the Kedro docs for using pipenv or venv instead of conda were valid, since I added them to Vizro in overhauling the installation docs. I've since removed them again because I figure, in the case of Vizro at least, that novice users don't need to know about them, and more experienced users will likely already have their preferred virtual environment tool. I've just linked them instead.

astrojuanlu commented 4 months ago

For more context on my thoughts on Kedro installation instructions, see https://github.com/kedro-org/kedro/issues/3281

Long story short, I think "native" methods (pip) should be shown on top, then conda as an alternative. And please don't mention Pipenv, unless you're also mentioning Poetry, PDM, Hatch, and Rye.

antonymilne commented 4 months ago

Cool, my spidey sense that this guidance would not be sanctioned by @astrojuanlu were right πŸ˜€ I have exactly the same feelings as him on the topic so fully agree with https://github.com/kedro-org/kedro/issues/3281.

stichbury commented 4 months ago

Cool, my spidey sense that this guidance would not be sanctioned by @astrojuanlu were right πŸ˜€ I have exactly the same feelings as him on the topic so fully agree with kedro-org/kedro#3281.

In the context of this PR however, the question for me is -- who needs what guidance?

I'm assuming that experienced Python users already know and understand the need for a virtual environment and have their preferred way of using one. So we don't need to address them (but we can point to somewhere that describes the options if it helps -- hit me with a preferred link).

antonymilne commented 4 months ago

I've pushed a commit 8e222fe to update this:

Here's the relevant page: https://vizro--337.org.readthedocs.build/en/337/pages/user-guides/install/, which is easier to read than the commit diff.

lmk what you think @astrojuanlu and feel free to put this in the kedro docs too if you like it.

stichbury commented 4 months ago

I've pushed a commit 8e222fe to update this:

Nice, thanks! I think that's a satisfactory outcome for all reader types. I'll had considered that we could adjust the bit about Anaconda navigator to bring that up the page for those that want to avoid the whole scenario of virtual envs, but that takes them into the Anaconda docs and introduces unnecessary complexity. This is a nice compromise -- thank you!

stichbury commented 4 months ago

When you've a moment, please could I get an approval @antonymilne or @maxschulz-COL and I'll get this merged so I can get on with the next set of edits.