Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 8773b9f

Browse files
authored
Merge pull request #682 from EOSIO/docs/21.0.0
adjustments to 21.0.0 docs
2 parents 566aa1c + 9a30526 commit 8773b9f

File tree

5 files changed

+497
-158
lines changed

5 files changed

+497
-158
lines changed

docs.json

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,11 @@
1010
{
1111
"name": "typedoc",
1212
"options": {
13-
"theme": "markdown",
14-
"exclude": ["**/index*","**/*.test.ts","**/rpc-web*"],
15-
"ignoreCompilerErrors": true,
16-
"includeDeclarations": false,
17-
"excludeExternals": true,
18-
"excludeProtected": true,
19-
"excludePrivate": true,
20-
"typescript": {
21-
"include": [
22-
"src/**/*.js"
23-
]
24-
}
25-
}
13+
"disable_filters": true
14+
},
15+
"filters": [
16+
{ "name": "remove_extension" }
17+
]
2618
}
27-
],
28-
"filters": [
29-
{
30-
"name": "search_replace",
31-
"options": {
32-
"search": "numeric.md#",
33-
"replace": "#",
34-
"filepattern": "numeric.md"
35-
}
36-
},
37-
{
38-
"name": "search_replace",
39-
"options": {
40-
"search": "serialize.md#",
41-
"replace": "#",
42-
"filepattern": "serialize.md"
43-
}
44-
}
45-
]
19+
]
4620
}

docs/00_introduction.md renamed to docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
content_title: eosjs
3+
---
4+
15
`eosjs` is a Javascript library which provides an API for integrating with EOSIO-based blockchains using the [EOSIO Nodeos RPC API](https://developers.eos.io/eosio-nodeos/reference). The documentation for `eosjs` is structured in the following way:
26

37
* [Installation](02_installation.md) explains how to install `eosjs` using `npm` or `yarn`.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
"build-web": "webpack --config webpack.prod.js && webpack --config webpack.debug.js",
1717
"build-production": "yarn build && yarn build-web && yarn test-all",
1818
"clean": "rm -rf dist",
19-
"docs-init": "sh .docs/scripts/init.sh",
20-
"docs-build": "sh .docs/scripts/build.sh",
21-
"docs-serve": "python -m SimpleHTTPServer",
22-
"docs-publish": "sh .docs/scripts/publish.sh"
19+
"docs": "yarn typedoc"
2320
},
2421
"author": "block.one",
2522
"license": "MIT",
@@ -53,7 +50,9 @@
5350
"tslint-eslint-rules": "5.4.0",
5451
"typescript": "3.3.3",
5552
"webpack": "4.41.5",
56-
"webpack-cli": "3.2.3"
53+
"webpack-cli": "3.2.3",
54+
"typedoc": "^0.16.9",
55+
"typedoc-plugin-external-module-name": "^3.0.0"
5756
},
5857
"jest": {
5958
"automock": false,

typedoc.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
{
2-
"name": "eosjs",
3-
"target": "es5",
4-
"module": ["es2017","dom"],
2+
"tsconfig": "tsconfig.json",
53
"ignoreCompilerErrors": true,
4+
"hideGenerator": true,
65
"includeDeclarations": false,
7-
"excludeProtected": true,
6+
"excludeExternals": true,
87
"excludePrivate": true,
8+
"excludeProtected": true,
9+
"externalPattern": "**/node_modules/**",
10+
"excludeNotExported": true,
11+
"exclude": ["**/index*","**/*.test.ts","**/*.test.js", "**/node_modules/**"],
912
"mode": "modules",
10-
"out": "docs-build",
11-
"theme": "markdown",
12-
"mdEngine": "gitbook",
13-
"stripExternal": false,
14-
"exclude": ["**/index*","**/*.test.ts"],
1513
"readme": "README.md",
16-
"hideGenerator": "true",
17-
"verbose": true,
18-
"mdSourceRepo": "https://www.github.com/EOSIO/eosjs"
14+
"module": "commonjs",
15+
"theme": "minimal",
16+
"target": "ES5",
17+
"out": "./reference"
1918
}

0 commit comments

Comments
 (0)