-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Examples: Adding more tags to search. #19245
Conversation
Does this PR close #18779? (I don't think we need two of them) |
interesting. but dont you think you need to put a separator there |
@makc yep, but probably we don't need it, since we using simple substring matching. |
and that is exactly why you need it, if one of your words ends in |
5f395d7
to
5eedf01
Compare
githack, found an error. |
I find that confusing... I think I prefer #18779's simplicity 🤔 |
In this case search results appearing silently without reason. |
The search is intended to just filter the example list, not adding new items to it. This is what makes your PR confusing. |
Yes, I think #18779 was fine, just had not had a chance to review it properly. |
How about merging #18779 first. @munrocket can then rebase this PR and add the tags. |
well technically munrocket did already include 18779 in this PR. it is just that his next commits overwrote the code then ) |
@munrocket Yes, but... unfortunately, the commit where you added more tags also has the UI code that it's not ready to merge yet. 5eedf01 |
@mrdoob since #18700 is now closed, where do we track the missing/needed tags? here? I just went to https://raw.githack.com/mrdoob/three.js/dev/examples/#webgl_animation_cloth and I could not find map controls by searching for |
9d2cf78
to
15fdab2
Compare
Yes. @munrocket just needs to rebase the PR and remove the UI related code. |
examples/index.html
Outdated
@@ -249,7 +249,7 @@ <h1><a href="https://threejs.org">three.js</a></h1> | |||
|
|||
var link = links[ file ]; | |||
var name = getName( file ); | |||
if ( file in tags ) file += tags[ file ].join( ' ' ); | |||
if ( file in tags ) file += tags[ file ]; |
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 change should not be necessary.
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 just dumped an old version. I am a lazy cookie.
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.
By the way, I am also added webgl_loader_ttf with "text, font"
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.
It seems this change still needs to be undone, no?
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.
With this approach if you search for ,
,
, or ,
you'll get a lot of results.
I think I prefer the array approach.
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.
Doesn’t see why, sorry. Splitting into tags and then join it again in code?
Looks like cargo cult to Tags :D . The same thing with
will happens after .join().
Real problem not here. In UX probably. Nobody searching ,
.
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.
Fixed it. You forcing me to make a drama out of it.
I am rebased commit. Not sure about all tags, but this is the first things that pop out my head. Better than nothing even without additional UI. |
Thanks! |
Fixes #18700
Related commits: #18773, #18779