-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Docs: update docs design #931
Conversation
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey thanks for opening that PR, the preview makes it super nice to see. I see we have just a small issue with the commit signing thing currently (see this doc page), you mostly need to use commit --amend -s
.
I let you put the PR in "ready for review" mode before making comments about the content :)
Here is a preview of content blocks |
Hey, I'm just seeing that you modified content under |
Got it, I'm fixing it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! I think it looks great and I guess it will fit well with the new homepage!
However, I have a few topics to discuss:
- I already addressed that in a separate thread on font and spacing but we need to improve readability I think and this is the main issue, because pages like that do not look very readable I think.
- I'm not sure having the same(blue) color for quotes and notes is a good idea. You could remove the "info" thing since we can use "note" for that we use the gray color for the quote.
- Maybe we can do better on the style of
<figure>
, you have an example in your overview test paragraphs and the figure caption does not look super great. - Just to know, have you looked at the theme for code block or not really? I could take a look to see if we can find something better (colors and font). It's pretty ok as-is.
- This is a nit: I saw you removed a lot of empty lines at the end of files. I'm not sure it's necessary or wanted.
- Since you changed the "note", "warning", etc. thing to always be labeled on top, we now have a spacing difference between paragraph and title when using a single paragraph block and a multi-paragraph block (look at the diff between caution and note, more visible with Chrome/Firefox tools):
- on a meta-level: you will need to do some work on your branch:
- please drop the merge commits with main and just rebase on top of current main. That's why we got the request for review from William because you included a lot of unrelated changes via a merge commit in your branch. You can use
git rebase main
for that once you have a synched version of main. - please squash some of your commits and look at the feedback from the CI that will complain about non-compliant commit messages (too long, mistakes, no signature, etc.). We won't need the commit history from the modification of the vendor folder, then restoration of the vendor folder. I think we could end up with less than 5/10 commits instead of 50. For that you can use
git rebase -i FIRST_COMMIT_HASH^
. And use squash, reword, etc...
- please drop the merge commits with main and just rebase on top of current main. That's why we got the request for review from William because you included a lot of unrelated changes via a merge commit in your branch. You can use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put this file modification on a top level layouts
folder in the repository?
$google_font_name: "Manrope"; | ||
$google_font_family: "Manrope:400,600,700,800"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, while the overall look is great, I'm not sure this font is super readable, it feels like the horizontal spacing is a bit crushed in some parts and everything is really dense (like in the warning), could we do something about it? Or have an alternative?
First example
Second example
Third example, worse with italic fonts
description: > | ||
Discover Tetragon and its capabilities | ||
--- | ||
|
||
<!-- TODO: remove test content below before merge --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventually, we will need to remove this, we can keep this for review.
$google_font_name: "Manrope"; | ||
$google_font_family: "Manrope:400,600,700,800"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtardy could you please specify what you would like to change in |
Ah! I had no idea specific in mind but just saw that it was not really on the same level of design as the rest. If you think it's pairing well with the rest let's use the default. |
Also, can we add a favicon? :) Teteragon logo should be fine in there. |
6650f06
to
e42ee97
Compare
@mtardy hi! Please check the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, you again modified files under _vendor
, same for the favicons. Place them in the top-level layouts and static folders, please.
@@ -1,6 +1,7 @@ | |||
--- | |||
title: "Kubernetes quickstart guide" | |||
weight: 2 | |||
weight: 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do not change the organization of the doc by changing weight!
docs/assets/scss/main-content.scss
Outdated
max-width: 800px; | ||
margin: 0 auto; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that you added that, I think it's quite unusual for docs website to be centered so maybe we should remove the margin: 0 auto
. And is the max-width
based on typography rules? I think it's a really nice addition since websites like k8s.io/docs don't have it and might look weird on large screens. We could also use a unit like ch
to adjust the max-width to an average maximum number of words per line?
>}} | ||
|
||
The documentation is divided into the following sections: | ||
{{< banner title="Getting Started with Tetragon" content="Quickly get started and learn how to install, deploy and configure it" link="getting-started/" >}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the link seems to not work on getting started button in the preview.
Let's take my comment and see how it evolved :)
I think on that topic, the new font is way easier to read! It's less customized and simpler but honestly, I find it better thanks! I think we could still use a little bit more spacing around headers for examples, and other particular objects (paragraphs, lists) since it looks a bit dense still. I don't know if it's only me but the default theme was too much spacing around h1 and h2 headers but this still looks pretty dense. Again if you are following typography principles feel free to educate me since it's just my personal very objective opinion and it can be very wrong.
Ok, thanks! Looks okay
Looks okay
I saw you personalized the monospace font with
you did not change that but it's ok. Thanks, it looks great now.
It looks like you squashed everything under "squash commit" 😅 usually the idea is to have commits of things that make sense together and have a nice description for the future addition, maybe we can take over on that and squashed the way we think it makes sense if it's not practical for you. In the end, it's ok if we end up with only one commit and all the history, and interesting stuff in the commit message. Really it's up to you and how you think the changed should be organized. |
btw you haven't touched the background/borders of code block, what's your opinion on that, do you think the default look great? I personally appreciate that text code blocks are different than code blocks (one without and one with borders) I think the one with the border does not look very modern but if we modify them it would be nice if we can still differentiate them easily (since text is usually output and code is input). And also if we can add a "copy" button on the right of the code block for people to easily copy-paste examples it would be amazing (not on text code block, but only on code code block :D). Do you think it's doable? |
btw what happened to the search button on the top left? :) |
I was thinking we could add https://github.com/google/docsy/blob/main/userguide/content/en/docs/adding-content/shortcodes/index.md to see a lot of the shortcode used and their look. I think one we skipped is the card tab: ![]() |
c240da9
to
b07608f
Compare
Hey @nerucheva! We would love to merge this as it's in a good state. If we want to make improvements we can iterate from there. Can you do two things so that it's ready to merge:
|
Signed-off-by: Raman Yasel <raman.yasel@gmail.com>
Hi @mtardy! I've done everything you asked Tatiana to do above☝️, please review |
is the button green? yes. |
This PR updates docs UI and styles. Preview