website icon indicating copy to clipboard operation
website copied to clipboard

Revise search to align better with Docsy

Open sftim opened this issue 1 year ago • 2 comments

This is a small bit of change that (only slightly) helps us adopt Docsy. The associated JavaScript files are all moved to assets, allowing build-time minification.

Think issue #41171, but the link is tenuous. I still recommend making the change.

/area web-development

sftim avatar Sep 17 '24 20:09 sftim

Pull request preview available for checking

Built without sensitive environment variables

Name Link
Latest commit 38cec03c87c26b77d25b55b32beecd555d2d0f6c
Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/67abdcfb8b10860008fc6161
Deploy Preview https://deploy-preview-47975--kubernetes-io-main-staging.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Sep 17 '24 20:09 netlify[bot]

Hmm, the style change you mention @dipesh-rawat doesn't match intent. I wonder if there's a tool to help uncover this kind of impact and test if it's a problem?

I don't have a fleet of browsers etc to try it out with.

sftim avatar Sep 24 '24 08:09 sftim

@dipesh-rawat PTAL; I changed the approach here.

sftim avatar Oct 19 '24 14:10 sftim

@divya-mohan0209 if you have time to add your feedback, I'd appreciate that too.

sftim avatar Oct 19 '24 14:10 sftim

The current implementation is not "resilient" enough when my screen width decreases. E.g.:

At ~1280px, I'm getting this: pr-47975-p1

At ~1130px, this: pr-47975-p2

After playing around this a bit, I'm offering a fix in https://github.com/kubernetes/website/pull/47975/commits/38c9000ffce7bea7b1eba60edcabecd63113f4fc (I've checked it in two browsers, Chrome & Firefox).

shurup avatar Nov 26 '24 06:11 shurup

Personally, I also prefer the current search input design (on the left) in the sidebar as it is more visible. Was it an intentional change?

image

shurup avatar Nov 26 '24 06:11 shurup

Sounds like this could use more work. We upgraded Docsy since I started this. /retitle [WIP] Revise search to align better with Docsy

sftim avatar Nov 26 '24 10:11 sftim

Ready for review /retitle Revise search to align better with Docsy

sftim avatar Dec 04 '24 13:12 sftim

Not sure whether I'm entitled to formally review it, but LGTM now!

shurup avatar Dec 05 '24 05:12 shurup

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from sftim. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Feb 03 '25 22:02 k8s-ci-robot

Will look wrong until https://github.com/kubernetes/website/pull/49630 has merged.

sftim avatar Feb 03 '25 22:02 sftim

Hmm. The mobile view doesn't seem right.

sftim avatar Feb 04 '25 09:02 sftim

@sftim why? It seems to be fine (with an exception for the 90% width, which would be fixed by your PR).

P.S. Personally, I would also remove unnecessary left/right paddings to leave more space for the content itself. (If that sounds good, I can suggest a fix for it here.)

shurup avatar Feb 04 '25 11:02 shurup

Maybe it's just an artefact of the width. I'll octopus them together and check.

sftim avatar Feb 04 '25 11:02 sftim

Needs more work; the search doesn't actually work right now!

sftim avatar Feb 11 '25 11:02 sftim

If https://github.com/kubernetes/website/pull/49724 does a better job: great! This one can close.

sftim avatar Feb 23 '25 23:02 sftim

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Mar 20 '25 00:03 k8s-ci-robot

Done better in PR https://github.com/kubernetes/website/pull/49724

sftim avatar Mar 21 '25 13:03 sftim