Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit b0ff483

Browse files
authored
docs: publish typedoc api docs (#152)
Updates project config to publish typedocs
1 parent 0f7ebf6 commit b0ff483

File tree

3 files changed

+23
-45
lines changed

3 files changed

+23
-45
lines changed

.gitignore

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,8 @@
1-
docs
2-
**/node_modules/
3-
**/*.log
4-
test/repo-tests*
5-
**/bundle.js
6-
7-
# Logs
8-
logs
9-
*.log
10-
11-
coverage
12-
13-
# Runtime data
14-
pids
15-
*.pid
16-
*.seed
17-
18-
# Directory for instrumented libs generated by jscoverage/JSCover
19-
lib-cov
20-
21-
# Coverage directory used by tools like istanbul
22-
coverage
23-
24-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
25-
.grunt
26-
27-
# node-waf configuration
28-
.lock-wscript
29-
30-
build
31-
32-
# Dependency directory
33-
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
341
node_modules
35-
36-
lib
2+
build
373
dist
38-
test/test-data/go-ipfs-repo/LOCK
39-
test/test-data/go-ipfs-repo/LOG
40-
test/test-data/go-ipfs-repo/LOG.old
41-
42-
# while testing npm5
4+
.docs
5+
.coverage
6+
node_modules
437
package-lock.json
448
yarn.lock

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# @libp2p/bootstrap <!-- omit in toc -->
22

33
[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
4-
[![IRC](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p)
54
[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
65
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-bootstrap.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-bootstrap)
7-
[![CI](https://img.shields.io/github/workflow/status/libp2p/js-libp2p-interfaces/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/libp2p/js-libp2p-bootstrap/actions/workflows/js-test-and-release.yml)
6+
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p-bootstrap/js-test-and-release.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p-bootstrap/actions/workflows/js-test-and-release.yml?query=branch%3Amaster)
87

98
> Node.js IPFS Implementation of the railing process of a Node through a bootstrap peer list
109
1110
## Table of contents <!-- omit in toc -->
1211

1312
- [Install](#install)
13+
- [Browser `<script>` tag](#browser-script-tag)
1414
- [Usage](#usage)
1515
- [Contribute](#contribute)
16+
- [API Docs](#api-docs)
1617
- [License](#license)
1718
- [Contribute](#contribute-1)
1819

@@ -22,6 +23,14 @@
2223
$ npm i @libp2p/bootstrap
2324
```
2425

26+
### Browser `<script>` tag
27+
28+
Loading this module through a script tag will make it's exports available as `Libp2pBootstrap` in the global namespace.
29+
30+
```html
31+
<script src="https://unpkg.com/@libp2p/bootstrap/dist/index.min.js"></script>
32+
```
33+
2534
## Usage
2635

2736
The configured bootstrap peers will be discovered after the configured timeout. This will ensure
@@ -86,6 +95,10 @@ The libp2p implementation in JavaScript is a work in progress. As such, there ar
8695
- Go through the modules and **check out existing issues**. This is especially useful for modules in active development. Some knowledge of IPFS/libp2p may be required, as well as the infrastructure behind it - for instance, you may need to read up on p2p and more complex operations like muxing to be able to help technically.
8796
- **Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
8897

98+
## API Docs
99+
100+
- <https://libp2p.github.io/js-libp2p-bootstrap>
101+
89102
## License
90103

91104
Licensed under either of

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"types": "./dist/src/index.d.ts",
2323
"files": [
2424
"src",
25-
"dist/src",
25+
"dist",
2626
"!dist/test",
2727
"!**/*.tsbuildinfo"
2828
],
@@ -135,7 +135,8 @@
135135
"test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
136136
"test:node": "aegir test -t node --cov",
137137
"test:electron-main": "aegir test -t electron-main",
138-
"release": "aegir release"
138+
"release": "aegir release",
139+
"docs": "aegir docs"
139140
},
140141
"dependencies": {
141142
"@libp2p/interface-peer-discovery": "^1.0.1",
@@ -152,7 +153,7 @@
152153
"@libp2p/interface-peer-id": "^1.0.4",
153154
"@libp2p/peer-id-factory": "^1.0.18",
154155
"@libp2p/peer-store": "^5.0.0",
155-
"aegir": "^37.5.3",
156+
"aegir": "^37.7.5",
156157
"datastore-core": "^8.0.1",
157158
"delay": "^5.0.0"
158159
}

0 commit comments

Comments
 (0)