Skip to content

Commit

Permalink
📚 docs: Upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 24, 2020
1 parent 3121dee commit a96b4e2
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 42 deletions.
47 changes: 47 additions & 0 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"source": "./src",
"destination": "./gh-pages",
"debug": false,
"index": "./README.md",
"package": "./package.json",
"plugins": [
{
"name": "esdoc-standard-plugin",
"option": {
"accessor": {
"access": ["public", "protected", "private"],
"autoPrivate": true
},
"brand": {
"title": "@aureooms/js-disjoint-set"
},
"test": {
"type": "ava",
"source": "./test/src"
},
"manual": {
"files":[
"./doc/manual/overview.md",
"./doc/manual/installation.md",
"./doc/manual/usage.md",
"./doc/manual/example.md"
]
}
}
},
{
"name": "esdoc-inject-style-plugin",
"option": {
"enable": true,
"styles": ["./doc/css/style.css"]
}
},
{
"name": "esdoc-inject-script-plugin",
"option": {
"enable": true,
"scripts": ["./doc/scripts/header.js"]
}
}
]
}
1 change: 1 addition & 0 deletions doc/manual/example.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Examples
```js
// can choose between 8 different implementations
// - ForestAmortizedHalving
Expand Down
1 change: 1 addition & 0 deletions doc/manual/installation.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Installation
Can be managed using
[jspm](http://jspm.io)
or [npm](https://github.com/npm/npm).
Expand Down
1 change: 1 addition & 0 deletions doc/manual/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Overview
7 changes: 4 additions & 3 deletions doc/manual/usage.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Usage
The code needs a ES2015+ polyfill to work, for example
[babel-polyfill](https://babeljs.io/docs/usage/polyfill).
[@babel/polyfill](https://babeljs.io/docs/usage/polyfill).
```js
require( 'babel-polyfill' ) ;
require( '@babel/polyfill' ) ;
// or
import 'babel-polyfill' ;
import '@babel/polyfill' ;
```

Then
Expand Down
37 changes: 0 additions & 37 deletions esdoc.json

This file was deleted.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"babel-preset-latest": "6.24.1",
"codeclimate-test-reporter": "0.5.1",
"coveralls": "2.13.3",
"esdoc": "0.5.2",
"esdoc": "1.1.0",
"nyc": "11.9.0",
"@babel/cli": "7.8.4",
"@babel/core": "7.9.0",
Expand Down Expand Up @@ -68,6 +68,7 @@
"build": "babel src -d lib",
"cover": "nyc --reporter=lcov npm test",
"prepublish": "npm run build",
"test": "ava ./test/src --concurrency 8"
"test": "ava ./test/src --concurrency 8",
"esdoc": "esdoc"
}
}

0 comments on commit a96b4e2

Please sign in to comment.