From 0f44d7de058514b1a786b97fe8eb0925c0eeb087 Mon Sep 17 00:00:00 2001 From: Efraim Munthe Date: Tue, 9 Apr 2024 22:28:35 +0700 Subject: [PATCH 1/4] Update README.md: add steps to add site shortcut for Firefox --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 1f2af8a..983b703 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,23 @@ Use this as a site shortcut in Chrome! Now, you can type `astro` in Chrome's address bar, followed by whatever topic you'd like to jump to in the Astro Docs. +For Firefox: + +Firefox out of the box does not support adding a new search engine. However, there is an option to enable it. Here is how: + +- Open a new tab and navigate to `about:config` +- In the search box, type `browser.urlbar.update2.engineAliasRefresh`. +- At this point, the result list should be empty. + - If it is empty, click the **+** button at the top right. + - If the option already exists, set it to `true` by clicking the swap button on the right. +- Now navigate to `about:preferences#search`. +- Notice that it now has an **Add** button. Click on it. +- In the popup, set the **engine URL** to `https://a.stro.cc/%s`. +- Set the alias to `astro`, or anything you prefer! +- press **Add Engine**. + +Now you can type `astro` followed by your search term. It will redirect you into the Astro Docs! + 🫡 Good luck out there, astronaut! ## Thanks From 6b30ac9aeba17ee24ff69e9f6ba77e01e287dc93 Mon Sep 17 00:00:00 2001 From: Efraim Munthe Date: Tue, 9 Apr 2024 22:31:04 +0700 Subject: [PATCH 2/4] Update README.md: changed headings for better readability --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 983b703..13114e3 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,9 @@ Just pass your query as the path, and you will be redirected to the most relevan - [`a.stro.cc/islands`](https://a.stro.cc/islands) => `https://docs.astro.build/en/concepts/islands/` - [`a.stro.cc/github%20pages`](https://a.stro.cc/github%20pages) => `https://docs.astro.build/en/guides/deploy/github/` -## Tip! +## Tip: Use this as a site shortcut! -Use this as a site shortcut in Chrome! +### Chrome - Navigate to [`chrome://settings/searchEngines`](chrome://settings/searchEngines) - Under **Site Search** select **Add**. @@ -22,7 +22,7 @@ Use this as a site shortcut in Chrome! Now, you can type `astro` in Chrome's address bar, followed by whatever topic you'd like to jump to in the Astro Docs. -For Firefox: +### Firefox Firefox out of the box does not support adding a new search engine. However, there is an option to enable it. Here is how: From 387a0c2b0955577f155d6134a93c478f23b1ffc4 Mon Sep 17 00:00:00 2001 From: Efraim Munthe Date: Thu, 11 Apr 2024 22:37:51 +0700 Subject: [PATCH 3/4] Update README.md: change wording on 'add button' step Co-authored-by: Chris Swithinbank --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 13114e3..403bafe 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Firefox out of the box does not support adding a new search engine. However, the - If it is empty, click the **+** button at the top right. - If the option already exists, set it to `true` by clicking the swap button on the right. - Now navigate to `about:preferences#search`. -- Notice that it now has an **Add** button. Click on it. +- Click on the **Add** button under the “Search Shortcuts” list. - In the popup, set the **engine URL** to `https://a.stro.cc/%s`. - Set the alias to `astro`, or anything you prefer! - press **Add Engine**. From 945a6e6e2d8ecaba22480de23b4a331c42c8da2d Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Thu, 11 Apr 2024 10:43:08 -0500 Subject: [PATCH 4/4] Apply suggestions from code review --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 403bafe..2c0cb64 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Firefox out of the box does not support adding a new search engine. However, the - Click on the **Add** button under the “Search Shortcuts” list. - In the popup, set the **engine URL** to `https://a.stro.cc/%s`. - Set the alias to `astro`, or anything you prefer! -- press **Add Engine**. +- Press **Add Engine**. Now you can type `astro` followed by your search term. It will redirect you into the Astro Docs!