Skip to content

Commit 21f8328

Browse files
📚 docs: Update.
1 parent d34eb93 commit 21f8328

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

.esdoc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
"./doc/scripts/header.js"
5151
]
5252
}
53+
},
54+
{
55+
"name": "esdoc-ecmascript-proposal-plugin",
56+
"option": {
57+
"all": true
58+
}
5359
}
5460
]
5561
}

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
run: npm run build-gh-pages
1818

1919
- name: Deploy 🚀
20-
uses: JamesIves/github-pages-deploy-action@4.1.1
20+
uses: JamesIves/github-pages-deploy-action@v4.4.0
2121
with:
2222
branch: gh-pages
2323
folder: gh-pages

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Lempel-Ziv lossless data compression algorithms for JavaScript.
55
See [docs](https://compression-algorithm.github.io/lempel-ziv/index.html).
66

7-
> :warning: The code requires `regeneratorRuntime` to be defined, for instance by importing
7+
> :warning: Depending on your environment, the code may require
8+
> `regeneratorRuntime` to be defined, for instance by importing
89
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
910
1011
```js

doc/manual/usage.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# Usage
22

3-
> :warning: The code requires `regeneratorRuntime` to be defined, for instance by importing
3+
> :warning: Depending on your environment, the code may require
4+
> `regeneratorRuntime` to be defined, for instance by importing
45
> [regenerator-runtime/runtime](https://www.npmjs.com/package/regenerator-runtime).
56
67
First, require the polyfill at the entry point of your application
78
```js
8-
await import( 'regenerator-runtime/runtime.js' );
9+
await import('regenerator-runtime/runtime.js');
910
// or
10-
import 'regenerator-runtime/runtime.js' ;
11+
import 'regenerator-runtime/runtime.js';
1112
```
1213

1314
Then, import the library where needed
1415
```js
15-
const lempelziv = await import( '@compression-algorithm/lempel-ziv' ) ;
16+
const {lz78} = await import('@compression-algorithm/lempel-ziv');
1617
// or
17-
import * as lempelziv from '@compression-algorithm/lempel-ziv' ;
18+
import {lz78} from '@compression-algorithm/lempel-ziv';
1819
```

doc/scripts/header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const domReady = function (callback) {
1010
domReady(() => {
1111
const projectname = document.createElement('a');
1212
projectname.classList.add('project-name');
13-
projectname.text = 'compression-algorithm/lempel-ziv';
13+
projectname.text = '@compression-algorithm/lempel-ziv';
1414
projectname.href = './index.html';
1515

1616
const header = document.querySelector('header');

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"author": "make-github-pseudonymous-again",
77
"homepage": "https://compression-algorithm.github.io/lempel-ziv",
88
"repository": {
9-
"type": "git",
10-
"url": "https://github.com/compression-algorithm/lempel-ziv"
9+
"url": "https://github.com/compression-algorithm/lempel-ziv",
10+
"type": "git"
1111
},
1212
"bugs": {
1313
"url": "https://github.com/compression-algorithm/lempel-ziv/issues"

0 commit comments

Comments
 (0)