Skip to content

Commit 4104513

Browse files
Release v0.2.0
1 parent e9ce01e commit 4104513

File tree

5 files changed

+42
-9
lines changed

5 files changed

+42
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ Client-side library for rendering webmentions from [webmention.io](https://webme
33

44
## Usage
55

6-
1. Copy the Javascript file from the `static/` directory to somewhere on your
7-
website
6+
1. Copy the Javascript file (`webmention.min.js`) from the `static/` directory to
7+
somewhere on your website
88
2. Put a `<div id="webmentions"></div>` where you want your webmentions to be
99
embedded
10-
3. Put a `<script src="/path/to/webmention.js" async></script>`
10+
3. Put a `<script src="/path/to/webmention.min.js" async></script>`
1111
somewhere on your page (typically inside `<head>` but it doesn't really
1212
matter), replacing `/path/to/` with whatever directory the Javascript
1313
file is in
@@ -20,13 +20,13 @@ Client-side library for rendering webmentions from [webmention.io](https://webme
2020
You can also pass in some arguments, for example:
2121

2222
```html
23-
<script src="/path/to/webmention.js" data-id="webmention-container" async></script>
23+
<script src="/path/to/webmention.min.js" data-id="webmention-container" async></script>
2424
```
2525

2626
Note that the `async` isn't strictly necessary but it can speed up apparent page
2727
loads.
2828

29-
Accepted arguments (see the source for more details):
29+
Accepted arguments (see the source in `static/webmention.js` for more details):
3030

3131
* `page-url` -- use this reference URL instead of the current browser location
3232
* `add-urls` -- additional URLs to include, separated by a `|`

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "webmention.js",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Client-side library for rendering webmentions from webmention.io",
55
"main": "index.js",
66
"directories": {
77
"test": "tests"
88
},
99
"scripts": {
10-
"minify": "terser --compress --mangle --comments all --ecma 5 --output ./static/webmention.min.js -- ./static/webmention.js",
10+
"minify": "terser --compress --mangle --ecma 5 --output ./static/webmention.min.js -- ./static/webmention.js",
1111
"test": "echo \"Error: no test specified\" && exit 1"
1212
},
1313
"repository": {

static/webmention.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* webmention.js
1+
/** @preserve webmention.js
22
33
Simple thing for embedding webmentions from webmention.io into a page, client-side.
44
@@ -26,6 +26,9 @@ GitHub repo (for latest released versions, issue tracking, etc.):
2626
2727
http://github.com/PlaidWeb/webmention.js
2828
29+
*/
30+
31+
/**
2932
Basic usage:
3033
3134
<script src="/path/to/webmention.js" data-param="val" ... async />

static/webmention.min.js

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)