-
Notifications
You must be signed in to change notification settings - Fork 199
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
Cannot find APIs through docs search bar #2710
Comments
I can reproduce this (I searched for "lowercase" and didn't find the API page listed). after playing with the search a bit I think there may be an issue where the "API reference" page is not being indexed. I wonder if it's due to the page size? |
Algolia crawler returns another solution would be to split the massive Api reference page into sub pages |
@ainvoner I see. I'll look into splitting the API reference into subpages as part of the docs work. I'm not sure if this would work as an intermediate solution but if there is a way to tell the extractor to skip low-level headings (H4, H5, H6) then that might be good enough. Related: algolia/docsearch#1658 |
@Chriscbr yes, there is an easy way to configure the crawler. However, by doing it we are losing search capabilities. |
Split up the API reference so each module in the standard library (`cloud`, `http`, `util`, etc.) has its own dedicated page. Besides making it easier to view, hopefully will make it easier for headings in these pages to get indexed and (crossing our fingers 🤞) will address #2710. <img width="230" alt="Screenshot 2023-06-27 at 6 30 04 PM" src="https://github.com/winglang/wing/assets/5008987/89316047-df92-437a-9bff-aec2fa5c0655"> It's not quite perfect (if there is a link to a resource in another subpage, the link just won't do anything) but it's a step in the right direction. ## Checklist - [ ] Title matches [Winglang's style guide](https://docs.winglang.io/contributing/pull_requests#how-are-pull-request-titles-formatted) - [ ] Description explains motivation and solution - [ ] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
So, it looks like #3113 improved the situation a little bit, since now e.g. searching for "redis" does show me results for the API reference of And these search results for "bucket" are pretty good: But "lowercase" still returns nothing useful. The next idea I'll try is reducing the number of headings we are generating. |
@tsuf239 thanks! |
I tried this:
Trying to find docs for the Wing stdlib on the docs page. e.g. trying to find
String#lowercase
.This happened:
The search for methods / types of the stdlib leads to zero results on docs
e.g. lowercase is present, but not discoverable / findable.
I expected this:
Is there a workaround?
Component
SDK, IDE Extension
Wing Version
0.17.32
Wing Console Version
0.17.32
Node.js Version
v18.16.0
Platform(s)
MacOS
Anything else?
No response
Community Notes
The text was updated successfully, but these errors were encountered: