-
Notifications
You must be signed in to change notification settings - Fork 35
feat: added initial rework of docs #148
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
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@aboodman @alexhking welcome any feedback you have here (I can't assign you as reviewers yet w/o permissions). |
Wow! Supportive of most of this. Specific feedback:
|
Nice! This is a whole lot of work and looks pretty cool. I did notice a few things looking through the code and while testing it out. Going to do a deep dive and then do inline comments, etc. Thanks! |
Sounds great - I will make updates based on this (and Alex I'll wait for your feedback). If either of you have any changes for how the icons are shown, let me know. I was trying to make the sections clearer visually. I will make smaller PRs in the future, got a bit ahead of myself. |
initial-review-compressed.mp4@0xcadams ☝🏼 Initial visual review |
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.
Added some inline comments along with the video from above. Thanks for the nice work!
app/page.tsx
Outdated
@@ -57,21 +72,26 @@ export default function Home() { | |||
|
|||
<div className={styles.navLinks}> | |||
<Button | |||
variant="outline" | |||
className={styles.primaryButton} | |||
className="flex items-center gap-2" |
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 notice that you're putting back the tailwind classes. Initially when we created this docs site from Aria Docs, we wanted to get rid of tailwind completely. I'm not a huge fan of it, but if you're more comfortable using it we can keep 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.
Got it - I was under the impression you were trying to move in the opposite direction. Yeah personally I like tailwind because it is simple and global styles are tough to manage as things grow. But duly noted, I won't step on these changes in the future
<CommandItem | ||
key={item.id} | ||
value={item.id} | ||
onSelect={() => { |
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.
This is where things could break with standard browser behavior. Handling navigation with router.push breaks standard link functionality.
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.
Yeah, fair point. I will try to rework to use links with prevent default. Not sure how well that integrates with cmdk
[tocs, level2Tocs], | ||
); | ||
|
||
useHotkeys(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], e => { |
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.
What do we do if more than 10 headings exist?
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 hotkeys only apply to the first ten - and if there's only one header it doesn't show them.
Thanks for the feedback! I made some changes to the search box - pinned to the top. It's more similar to how it currently is - let me know if this doesn't address feedback.
I moved this to a tooltip instead of showing in the button. Agreed it was noisy.
Removed
Open to any changes here
Done
Fixed this
Should've done these separately, will do this in the future. Alex:
|
Thanks for the quick revisions. On the surface it looks good to me, the hover states are cool. Curious what @aboodman thinks. Otherwise, lgtm. |
Few more bits of visual feedback in attached movie:
CleanShot 2025-07-12 at 00.23.31.mp4
<https://drive.google.com/file/d/18jRcLQwQ-NR6yX_fQ8qIsTvpDGXSYvJK/view?usp=drive_web>
As for tooltips, sorry still not a fan, it just seems superfluous. How
often is somebody going to click on these? Are shortcuts really needed? It
seems harder to process that there is a shortcut and use it than to just
click?
Is this something you yourself want Chase? Or thinking others wants it?
…On Fri, Jul 11, 2025 at 10:43 AM Alexander King ***@***.***> wrote:
*alexhking* left a comment (rocicorp/zero-docs#148)
<#148 (comment)>
Thanks for the quick revisions. On the surface it looks good to me, the
hover states are cool. Curious what @aboodman
<https://github.com/aboodman> thinks. Otherwise, lgtm.
—
Reply to this email directly, view it on GitHub
<#148 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAATUBGBO2CRID3WDQA4BED3IAOWJAVCNFSM6AAAAACBE3HVZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANRTG43DEOBSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I will address these!
My thought process was that it's more of a branding choice. I assume a lot of early adopters using Zero (and early inspirational products using sync engines) have keyboard shortcuts. To my mind, it's more of a reflection of how zero users want their products to be - fast to load, fast to search, and have keyboard shortcuts for fast navigation. That being said, they're not incredibly useful and personally I would likely not use them outside of the novelty of it. I'm open to feedback - up to you where you want this to go! |
Ah! That's an interesting rationale. But yeah I think let's not do things artificially. The docs are a reflection of our quality standards too and part of quality is making things useful (and only making things that are useful). Anyway, we have zbugs which is an actual real app that we can use and add keyboard shortcuts to. |
A trick I often use with product questions is just asking what we ourselves want. We are the target market for Zero. |
Updated docs with: