Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
docs: publish api docs (#14)
Browse files Browse the repository at this point in the history
Updates project config to publish api docs
  • Loading branch information
achingbrain authored Dec 16, 2022
1 parent ecc895f commit 78e708f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 29 deletions.
26 changes: 3 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
.coverage
.nyc_output

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

lib
dist

.docs
.coverage
node_modules
package-lock.json
yarn.lock
.cache
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
[![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)
[![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)
[![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)

> Collect libp2p metrics for scraping by Prometheus or Graphana
Expand All @@ -17,8 +17,9 @@
- [Memory usage](#memory-usage)
- [DHT query time](#dht-query-time)
- [TCP transport dialer errors](#tcp-transport-dialer-errors)
- [API Docs](#api-docs)
- [License](#license)
- [Contribute](#contribute)
- [Contribution](#contribution)

## Install

Expand Down Expand Up @@ -80,13 +81,17 @@ or

rate(libp2p_tcp_dialer_errors_total[30s])

## API Docs

- <https://libp2p.github.io/js-libp2p-prometheus-metrics>

## License

Licensed under either of

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

## Contribute
## Contribution

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.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"types": "./dist/src/index.d.ts",
"files": [
"src",
"dist/src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
Expand Down Expand Up @@ -129,7 +129,8 @@
"test": "aegir test -t node",
"test:node": "aegir test -t node --cov",
"test:electron-main": "aegir test -t electron-main --cov",
"release": "aegir release"
"release": "aegir release",
"docs": "aegir docs"
},
"dependencies": {
"@libp2p/interface-connection": "^3.0.2",
Expand All @@ -139,7 +140,7 @@
"it-stream-types": "^1.0.4"
},
"devDependencies": {
"@libp2p/interface-mocks": "^7.0.3",
"@libp2p/interface-mocks": "^8.0.4",
"@libp2p/peer-id-factory": "^1.0.19",
"@multiformats/multiaddr": "^11.0.7",
"aegir": "^37.5.6",
Expand Down

0 comments on commit 78e708f

Please sign in to comment.