Skip to content

Commit 78e708f

Browse files
authored
docs: publish api docs (libp2p#14)
Updates project config to publish api docs
1 parent ecc895f commit 78e708f

File tree

3 files changed

+15
-29
lines changed

3 files changed

+15
-29
lines changed

.gitignore

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,7 @@
1-
# Logs
2-
logs
3-
*.log
4-
5-
# Runtime data
6-
pids
7-
*.pid
8-
*.seed
9-
10-
# Directory for instrumented libs generated by jscoverage/JSCover
11-
lib-cov
12-
13-
# Coverage directory used by tools like istanbul
14-
coverage
15-
.coverage
16-
.nyc_output
17-
18-
# Dependency directory
19-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
201
node_modules
21-
22-
lib
232
dist
24-
3+
.docs
4+
.coverage
5+
node_modules
256
package-lock.json
267
yarn.lock
27-
.cache

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
44
[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
55
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-prometheus-metrics.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-prometheus-metrics)
6-
[![CI](https://img.shields.io/github/workflow/status/libp2p/js-libp2p-prometheus-metrics/test%20&%20maybe%20release/main?style=flat-square)](https://github.com/libp2p/js-libp2p-prometheus-metrics/actions/workflows/js-test-and-release.yml)
6+
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-prometheus-metrics/js-test-and-release.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p-prometheus-metrics/actions/workflows/js-test-and-release.yml?query=branch%3Amain)
77

88
> Collect libp2p metrics for scraping by Prometheus or Graphana
99
@@ -17,8 +17,9 @@
1717
- [Memory usage](#memory-usage)
1818
- [DHT query time](#dht-query-time)
1919
- [TCP transport dialer errors](#tcp-transport-dialer-errors)
20+
- [API Docs](#api-docs)
2021
- [License](#license)
21-
- [Contribute](#contribute)
22+
- [Contribution](#contribution)
2223

2324
## Install
2425

@@ -80,13 +81,17 @@ or
8081

8182
rate(libp2p_tcp_dialer_errors_total[30s])
8283

84+
## API Docs
85+
86+
- <https://libp2p.github.io/js-libp2p-prometheus-metrics>
87+
8388
## License
8489

8590
Licensed under either of
8691

8792
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
8893
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
8994

90-
## Contribute
95+
## Contribution
9196

9297
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"types": "./dist/src/index.d.ts",
2121
"files": [
2222
"src",
23-
"dist/src",
23+
"dist",
2424
"!dist/test",
2525
"!**/*.tsbuildinfo"
2626
],
@@ -129,7 +129,8 @@
129129
"test": "aegir test -t node",
130130
"test:node": "aegir test -t node --cov",
131131
"test:electron-main": "aegir test -t electron-main --cov",
132-
"release": "aegir release"
132+
"release": "aegir release",
133+
"docs": "aegir docs"
133134
},
134135
"dependencies": {
135136
"@libp2p/interface-connection": "^3.0.2",
@@ -139,7 +140,7 @@
139140
"it-stream-types": "^1.0.4"
140141
},
141142
"devDependencies": {
142-
"@libp2p/interface-mocks": "^7.0.3",
143+
"@libp2p/interface-mocks": "^8.0.4",
143144
"@libp2p/peer-id-factory": "^1.0.19",
144145
"@multiformats/multiaddr": "^11.0.7",
145146
"aegir": "^37.5.6",

0 commit comments

Comments
 (0)