1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
🐍 Ocean Protocol's official documentation https://docs.oceanprotocol.com
Go to file
Alex Coseru d8a2bcbbb9
Update content/setup/ctd.md
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2020-06-03 13:21:52 +03:00
.github Standardize contrib guidelines across public repos 2018-11-30 16:17:52 +01:00
content Update content/setup/ctd.md 2020-06-03 13:21:52 +03:00
data Update data/sidebars/setup.yml 2020-06-03 13:19:49 +03:00
docs switch Pleuston for Commons in most places 2019-10-08 12:56:32 +02:00
external bump dev-ocean 2020-05-15 10:02:34 +02:00
scripts properly set cache headers 2019-10-07 15:57:53 +02:00
src package updates and code base updates for it 2020-05-15 10:01:43 +02:00
static sitemap tweaks 2019-11-25 16:50:43 +01:00
.editorconfig setup markdownlint 2018-11-12 12:45:55 +01:00
.env.sample copy updates 2018-11-11 04:02:34 +01:00
.eslintrc package updates 2019-08-20 11:42:35 +02:00
.gitignore fetch squid-js typedoc spec from GitHub release 2019-06-24 20:51:27 +02:00
.gitmodules fetch squid-js typedoc spec from GitHub release 2019-06-24 20:51:27 +02:00
.markdownlint.json lint & format 2018-11-12 12:52:39 +01:00
.prettierignore ignore external docs for linting 2018-11-14 15:46:30 +01:00
.prettierrc
.stylelintrc add stylelint, lint & format tasks 2018-11-10 15:05:35 +01:00
.travis.yml bump packages, swagger specs from commons instances 2019-10-31 14:06:23 +01:00
config.js Add a redirect for /concepts/production-network/ 2019-06-25 11:36:02 +02:00
docker-compose.yml
Dockerfile
gatsby-browser.js lint fix 2020-01-06 15:24:57 +01:00
gatsby-config.js package updates 2020-03-16 10:52:35 +01:00
gatsby-node.js output ocean/OceanCompute 2020-03-26 12:33:05 +01:00
LICENSE
package.json Merge pull request #355 from oceanprotocol/dependabot/npm_and_yarn/eslint-7.0.0 2020-05-17 00:51:28 +02:00
README.md add codeclimate badge 2019-09-18 11:03:20 +02:00

banner

docs

🐍 Ocean Protocol's official documentation. https://docs.oceanprotocol.com

Build Status Maintainability js oceanprotocol css bigchaindb Greenkeeper badge


These docs are meant to be viewed on docs.oceanprotocol.com. You can still browse them here but links or images might not work in some places.

If you want to contribute to these docs, then keep reading.


Content

To write or update content, refer to the documentation of the documentation:

Development

The site is a React app built with Gatsby, pulling its content from local and external Markdown files, and from various APIs.

To start, clone this repo and set your GITHUB_TOKEN (see GitHub GraphQL API):

git clone --recurse-submodules git@github.com:oceanprotocol/docs.git
cd docs/

# add GITHUB_TOKEN
cp .env.sample .env
vi .env

Then install dependencies and start up the development server:

npm i
npm start

Alternatively, you can use Docker Compose to do the same, but without using your local system:

docker-compose up

Either one of these commands will expose a hot-reloading server under:

Linting & Formatting

To enforce a consistent code style, linting is setup for pretty much every file. Linting is part of the test suite, meaning builds on Travis will fail in case of linting errors.

In this repo the following tools are setup for that:

# only run linting checks
npm run lint

# auto-formatting of all js, css, md, yml files
npm run format

Editor Setup: VS Code

If you use VS Code as your editor, you can install those extensions to get linting as you type, and auto-formatting as you save:

Deployment

Automatic deployments are triggered upon successful tests & builds on Travis:

The deploy command simply calls the scripts/deploy.sh script, syncing the contents of the public/ folder to S3:

npm run deploy

Requires authorization against AWS with one of the various ways, on Travis this is done with those environment variables:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_DEFAULT_REGION

Authors

License

Copyright 2019 Ocean Protocol Foundation Ltd.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.