diff --git a/controllers/static.php b/controllers/static.php index 6b64df7..e2006af 100644 --- a/controllers/static.php +++ b/controllers/static.php @@ -6,6 +6,7 @@ function doc_pages($page=null) { 'creating-posts' => 'Creating Posts', 'editor' => 'Rich Editor', 'note' => 'Note Interface', + 'bookmark' => 'Bookmark Interface', 'syndication' => 'Syndication', 'post-status' => 'Post Status', ]; diff --git a/public/images/bookmark-interface.png b/public/images/bookmark-interface.png new file mode 100644 index 0000000..ae2fb3e Binary files /dev/null and b/public/images/bookmark-interface.png differ diff --git a/views/docs/bookmark.php b/views/docs/bookmark.php new file mode 100644 index 0000000..7900dfe --- /dev/null +++ b/views/docs/bookmark.php @@ -0,0 +1,34 @@ +
The bookmark interface is for creating bookmark posts.
+ +On the bookmark interface, you can drag a bookmarklet to your bookmarks toolbar. This will let you bookmark pages that you're viewing with a single click. You can select text in the page to include the selected text in the "content" of your bookmark post. The title of the page will be prefilled as the name of the bookmark post.
+ +The following properties will be sent in the Micropub request. This request will be sent as a form-encoded request.
+ +The access token is sent in the Authorization HTTP header:
+Authorization: Bearer XXXXXXXXX+ +
h=entry
- This indicates that this is a request to create a new h-entry post.bookmark-of
- This is the URL that you are bookmarking.name
- The name of the bookmark post, typically this is the same as the name of the page you are bookmarking. The Javascript bookmarklet will autofill this from the <title>
tag of the page.content
- The text of the bookmark post. You can use this to add your own commentary, or post a quote from the page you're bookmarking. The bookmarklet will autofill this if you have text selected on the page.category[]
- This property will be repeated for each tag you've entered in the "tags" field.mp-syndicate-to[]
- Each syndication destination selected will be sent in this property. The values will be the uid
that your endpoint returns. See Syndication for more details. (If you are using an older Micropub endpoint that expects syndicate-to
, you can customize this property in the settings.)Back to Creating Posts
+ +