From 5e904d19b400d26bfd0c8348ea92bb660abe2dc1 Mon Sep 17 00:00:00 2001 From: Carter <35710697+cmintey@users.noreply.github.com> Date: Wed, 21 Jun 2023 01:09:20 -0500 Subject: [PATCH] docs: re-add and fix the bookmarklet instructions to docs (#2419) --- .../import-recipe-bookmarklet.md | 18 ++++++++++++++++++ docs/mkdocs.yml | 1 + 2 files changed, 19 insertions(+) create mode 100644 docs/docs/documentation/community-guide/import-recipe-bookmarklet.md diff --git a/docs/docs/documentation/community-guide/import-recipe-bookmarklet.md b/docs/docs/documentation/community-guide/import-recipe-bookmarklet.md new file mode 100644 index 000000000000..f0ea5cb88ec1 --- /dev/null +++ b/docs/docs/documentation/community-guide/import-recipe-bookmarklet.md @@ -0,0 +1,18 @@ + +!!! 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. + + +!!! 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"); +``` diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 1f95f1efea5b..94f3b2658cbf 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -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"