1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-06-26 11:16:27 +02:00

Merge branch 'issue-1017-asset-pricing' of github.com:oceanprotocol/docs into issue-1017-asset-pricing

This commit is contained in:
Akshay 2022-06-23 19:54:01 +02:00
commit 5e26e0639b
7 changed files with 41493 additions and 10354 deletions

View File

@ -4,7 +4,7 @@ on:
push:
branches:
- main
- v4
- v3
pull_request:
branches:
- '**'
@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '14'
node-version: '16'
- name: Cache node modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
@ -30,7 +30,7 @@ jobs:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
- run: npm ci
- run: npm ci --legacy-peer-deps
- run: npm test
- run: npm run build
env:

2
.nvmrc
View File

@ -1 +1 @@
14
16

View File

@ -52,6 +52,9 @@ vi .env
Then install dependencies and start up the development server:
```bash
# use Node.js/npm version defined in .nvmrc
nvm use
npm i
npm start
```
@ -116,4 +119,3 @@ 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.
```

View File

@ -389,18 +389,6 @@ Resulting in:
<repo name="aquarius" readme="true"></repo>
## Embedding File Contents from GitHub
You can embed any file contents like so, note that the language needs to be defined manually to get proper syntax highlighting:
```markdown
GITHUB-EMBED https://github.com/oceanprotocol/ocean.js/blob/main/src/lib.ts js GITHUB-EMBED
```
Resulting in:
GITHUB-EMBED https://github.com/oceanprotocol/ocean.js/blob/main/src/lib.ts js GITHUB-EMBED
## Swagger spec references
Many Swagger fields like the description (`info.description`) are rendered through Markdown so you can write actual Markdown in those fields.

View File

@ -72,17 +72,6 @@ module.exports = {
showCaptions: true
}
},
{
resolve: 'gatsby-remark-github',
options: {
marker: 'GITHUB-EMBED',
insertEllipsisComments: false,
ellipsisPhrase: '...',
useCache: false,
cacheKey: 'gatsby-remark-github-v1',
token: process.env.GITHUB_TOKEN
}
},
'gatsby-remark-smartypants',
'gatsby-remark-embed-video',
'gatsby-remark-responsive-iframe',

51796
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -34,7 +34,6 @@
"gatsby-remark-code-titles": "^1.1.0",
"gatsby-remark-component": "^1.1.3",
"gatsby-remark-embed-video": "^3.1.1",
"gatsby-remark-github": "^2.0.0",
"gatsby-remark-images": "^3.11.1",
"gatsby-remark-responsive-iframe": "^2.11.0",
"gatsby-remark-smartypants": "^2.10.0",
@ -55,14 +54,13 @@
"react-helmet": "^6.1.0",
"react-json-view": "^1.21.3",
"react-scrollspy": "^3.4.3",
"rehype-react": "^7.0.4",
"rehype-react": "^7.1.1",
"remark": "^13.0.0",
"remark-github-plugin": "^1.4.0",
"remark-react": "^8.0.0",
"shortid": "^2.2.16",
"slugify": "^1.6.5",
"smoothscroll-polyfill": "^0.4.4",
"swagger-client": "^3.18.4"
"swagger-client": "^3.18.5"
},
"devDependencies": {
"@svgr/webpack": "^5.5.0",
@ -72,9 +70,9 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"git-format-staged": "^3.0.0",
"husky": "^7.0.4",
"husky": "^8.0.1",
"markdownlint-cli": "^0.31.1",
"node-sass": "^5.0.0",
"node-sass": "^6.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.6.2"
},