Skip to content

Commit

Permalink
docs: re-add and fix the bookmarklet instructions to docs (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmintey authored Jun 21, 2023
1 parent eea38a5 commit 5e904d1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!-- prettier-ignore -->
!!! info
This guide was submitted by a community member. Find something wrong? Submit a PR to get it fixed!

You can use bookmarklets to generate a bookmark that will take your current location, and open a new tab that will try to import that URL into Mealie.

You can use a [bookmarklet generator site](https://caiorss.github.io/bookmarklet-maker/) and the code below to generate a bookmark for your site. Just change the `http://localhost:8080` to your sites web address and follow the instructions.

<!-- prettier-ignore -->
!!! note
There is no trailing `/` at the end of the url!

```js
var url = document.URL;
var mealie = "http://localhost:8080";
var dest = mealie + "/recipe/create/url?recipe_import_url=" + url;
window.open(dest, "_blank");
```
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ nav:
- Reverse Proxy (SWAG): "documentation/community-guide/swag.md"
- Home Assistant: "documentation/community-guide/home-assistant.md"
- Bulk Url Import: "documentation/community-guide/bulk-url-import.md"
- Import Bookmarklet: "documentation/community-guide/import-recipe-bookmarklet.md"

- API Reference: "api/redoc.md"

Expand Down

0 comments on commit 5e904d1

Please sign in to comment.