This repository was archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
docs: consolidate API docs and update readme files #2944
Merged
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9ff1e85
docs: consolidate API docs and update readme files
achingbrain 52cf2a6
docs: move docs around
achingbrain c9466c2
docs: move docs around
achingbrain ab8069e
docs: update interface core readme
achingbrain 0f73161
docs: update interface core readme
achingbrain fed5012
docs: move docs around
achingbrain bb7bbb4
docs: move docs around
achingbrain ce65708
docs: move docs around
achingbrain fd10c99
docs: move docs around
achingbrain 06f6a91
docs: move docs around
achingbrain 08400a1
docs: move docs around
achingbrain 11cd75b
chore: move docs around
achingbrain 28a53c7
docs: move docs around
achingbrain 3ee8b99
docs: make headers headers
achingbrain ebd9999
docs: add the dweb primer and docs site to getting started
achingbrain f136c8e
docs: apply suggestions from code review
achingbrain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,9 +18,6 @@ node_modules | |
# Build artefacts | ||
dist | ||
|
||
# Doc generation | ||
docs | ||
|
||
# Deployment files | ||
.npmrc | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Development <!-- omit in toc --> | ||
|
||
- [Clone and install dependencies](#clone-and-install-dependencies) | ||
- [Run tests](#run-tests) | ||
- [Lint](#lint) | ||
- [Build a dist version](#build-a-dist-version) | ||
- [Publishing new versions](#publishing-new-versions) | ||
- [Using prerelease versions](#using-prerelease-versions) | ||
|
||
## Clone and install dependencies | ||
|
||
```sh | ||
> git clone https://github.com/ipfs/js-ipfs.git | ||
> cd js-ipfs | ||
> npm install | ||
``` | ||
|
||
This will install [lerna](https://www.npmjs.com/package/lerna) and bootstrap the various packages, deduping and hoisting dependencies into the root folder. | ||
|
||
If later you add new dependencies to submodules or just wish to remove all the `node_modules`/`dist` folders and start again, run `npm run reset && npm install` from the root. | ||
|
||
See the scripts section of the root [`package.json`](./package.json) for more commands. | ||
|
||
## Run tests | ||
|
||
```sh | ||
# run all the unit tests | ||
> npm test | ||
|
||
# run just IPFS tests in Node.js | ||
> npm run test:node | ||
|
||
# run just IPFS tests in a browser | ||
> npm run test:browser | ||
|
||
# run just IPFS tests in a webworker | ||
> npm run test:webworker | ||
``` | ||
|
||
More granular test suites can be run from each submodule. | ||
|
||
Please see the `package.json` in each submodule for available commands. | ||
|
||
## Lint | ||
|
||
Please run the linter before submitting a PR, the build will not pass if it fails: | ||
|
||
```sh | ||
> npm run lint | ||
``` | ||
|
||
## Build a dist version | ||
|
||
```sh | ||
> npm run build | ||
``` | ||
|
||
## Publishing new versions | ||
|
||
1. Ensure you have a `GH_TOKEN` env var containing a GitHub [Personal Access Token](https://github.com/settings/tokens) with `public_repo` permissions | ||
2. From the root of this repo run `npm run release` and follow the on screen prompts. It will use [conventional commits](https://www.conventionalcommits.org) to work out the new package version | ||
|
||
## Using prerelease versions | ||
|
||
Any changed packages from each successful build of master are published to npm as canary builds under the npm tag `next`. |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# IPFS module <!-- omit in toc --> | ||
|
||
These are functions not in the [Core API](#core-api) but that are specific to [`ipfs`](../packages/ipfs). | ||
|
||
## Table of contents <!-- omit in toc --> | ||
|
||
- [Constructor](#constructor) | ||
- [`options.repo`](#optionsrepo) | ||
- [`options.repoAutoMigrate`](#optionsrepoautomigrate) | ||
- [`options.init`](#optionsinit) | ||
- [`options.start`](#optionsstart) | ||
- [`options.pass`](#optionspass) | ||
- [`options.silent`](#optionssilent) | ||
- [`options.relay`](#optionsrelay) | ||
- [`options.offline`](#optionsoffline) | ||
- [`options.preload`](#optionspreload) | ||
- [`options.EXPERIMENTAL`](#optionsexperimental) | ||
- [`options.config`](#optionsconfig) | ||
- [`options.ipld`](#optionsipld) | ||
- [`options.libp2p`](#optionslibp2p) | ||
- [`options.connectionManager`](#optionsconnectionmanager) | ||
- [Instance methods](#instance-methods) | ||
- [`node.start()`](#nodestart) | ||
- [`node.stop()`](#nodestop) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# IPFS Docs <!-- omit in toc --> | ||
|
||
- [API Docs](#api-docs) | ||
- [How tos and other documentation](#how-tos-and-other-documentation) | ||
- [Development documentation](#development-documentation) | ||
|
||
## API Docs | ||
|
||
`ipfs` can run as part of your program (an in-process node) or as a standalone daemon process that can be communicated with via an HTTP RPC API using the [`ipfs-http-client`](../packages/ipfs-http-api) module. | ||
|
||
Whether accessed directly or over HTTP, both methods support the full [Core API](#core-api). In addition other methods are available to construct instances of each module, etc. | ||
|
||
* [Core API docs](./core-api/README.md) | ||
* [IPFS API]('../packages/ipfs/README.md) | ||
achingbrain marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* [IPFS-HTTP-CLIENT API]('../packages/ipfs-http-client/README.md) | ||
achingbrain marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## How tos and other documentation | ||
|
||
* [How to run js-IPFS in the browser](./BROWSERS.md) | ||
* [js-IPFS configuration options](./CONFIG.md) | ||
|
||
## Development documentation | ||
|
||
* [Release issue template](./RELEASE_ISSUE_TEMPLATE.md) | ||
* [Early testers](./EARLY_TESTERS.md) | ||
* [Releases](./RELEASES.md) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.