Skip to content

Commit 7373a36

Browse files
📚 docs: Upgrade.
1 parent 6729986 commit 7373a36

File tree

7 files changed

+57
-42
lines changed

7 files changed

+57
-42
lines changed

.esdoc.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"source": "./src",
3+
"destination": "./gh-pages",
4+
"debug": false,
5+
"index": "./README.md",
6+
"package": "./package.json",
7+
"plugins": [
8+
{
9+
"name": "esdoc-standard-plugin",
10+
"option": {
11+
"accessor": {
12+
"access": ["public", "protected", "private"],
13+
"autoPrivate": true
14+
},
15+
"brand": {
16+
"title": "@aureooms/js-random"
17+
},
18+
"test": {
19+
"type": "ava",
20+
"source": "./test/src"
21+
},
22+
"manual": {
23+
"files":[
24+
"./doc/manual/overview.md",
25+
"./doc/manual/installation.md",
26+
"./doc/manual/usage.md",
27+
"./doc/manual/example.md"
28+
]
29+
}
30+
}
31+
},
32+
{
33+
"name": "esdoc-inject-style-plugin",
34+
"option": {
35+
"enable": true,
36+
"styles": ["./doc/css/style.css"]
37+
}
38+
},
39+
{
40+
"name": "esdoc-inject-script-plugin",
41+
"option": {
42+
"enable": true,
43+
"scripts": ["./doc/scripts/header.js"]
44+
}
45+
}
46+
]
47+
}

doc/manual/example.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Examples
12
```js
23
import { randint , randfloat , sample , shuffle } from '@aureooms/js-random' ;
34

doc/manual/installation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Installation
12
Can be managed using
23
[jspm](http://jspm.io)
34
or [npm](https://github.com/npm/npm).

doc/manual/overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Overview

doc/manual/usage.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# Usage
12
The code needs a ES2015+ polyfill to work, for example
2-
[babel-polyfill](https://babeljs.io/docs/usage/polyfill).
3+
[@babel/polyfill](https://babeljs.io/docs/usage/polyfill).
34
```js
4-
require( 'babel-polyfill' ) ;
5+
require( '@babel/polyfill' ) ;
56
// or
6-
import 'babel-polyfill' ;
7+
import '@babel/polyfill' ;
78
```
89

910
Then

esdoc.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"babel-preset-env": "1.7.0",
3737
"codeclimate-test-reporter": "0.5.1",
3838
"coveralls": "2.13.3",
39-
"esdoc": "0.5.2",
39+
"esdoc": "1.1.0",
4040
"nyc": "14.1.1",
4141
"@babel/cli": "7.8.4",
4242
"@babel/core": "7.9.0",
@@ -70,6 +70,7 @@
7070
"build": "babel src -d lib",
7171
"cover": "nyc --reporter=lcov npm test",
7272
"prepublish": "npm run build",
73-
"test": "ava ./test/src --concurrency 8"
73+
"test": "ava ./test/src --concurrency 8",
74+
"esdoc": "esdoc"
7475
}
7576
}

0 commit comments

Comments
 (0)