Skip to content
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

Add a warning to expand docs #68

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/2-search/3-test-search.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# 👐 Testing the Search Index
import useBaseUrl from '@docusaurus/useBaseUrl';

# 👐 Testing the Search index

Now that you have a search index, you can test it out.

Expand All @@ -18,6 +20,11 @@ Look at the results you get.

<Screenshot src="img/screenshots/2-search/3-test-search/2-search-tester.png" alt="The Search Tester" url="https://cloud.mongodb.com" />

:::info
Some of the fields in the documents (like `title`) may be hidden. You can expand a document to see all of its fields by clicking the arrow button on the right side of the document.
<img src={useBaseUrl("img/screenshots/2-search/3-test-search/4-expand-document.png")} alt="The expand document button" />
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried using the Screenshot component here, but it wasn't displaying correctly inside of the info widget. I went with a regular image instead. If there is a way to get it to display correctly, I'm good with using the Screenshot component.

:::

You can see that you get a list of books back including:
* Pennsylvania Dutch _Cooking_: A Mennonite Community Cookbook.
* Semi-Homemade _Cooking_: Quick, Marvelous Meals and Nothing is Made from…
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.