mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Merge branch 'issue-1017-asset-pricing' of github.com:oceanprotocol/docs into issue-1017-asset-pricing
This commit is contained in:
commit
5e26e0639b
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- v4
|
- v3
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
@ -14,15 +14,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '14'
|
node-version: '16'
|
||||||
|
|
||||||
- name: Cache node modules
|
- name: Cache node modules
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
env:
|
env:
|
||||||
cache-name: cache-node-modules
|
cache-name: cache-node-modules
|
||||||
with:
|
with:
|
||||||
@ -30,7 +30,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
||||||
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
|
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
|
||||||
|
|
||||||
- run: npm ci
|
- run: npm ci --legacy-peer-deps
|
||||||
- run: npm test
|
- run: npm test
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
env:
|
env:
|
||||||
|
@ -52,6 +52,9 @@ vi .env
|
|||||||
Then install dependencies and start up the development server:
|
Then install dependencies and start up the development server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# use Node.js/npm version defined in .nvmrc
|
||||||
|
nvm use
|
||||||
|
|
||||||
npm i
|
npm i
|
||||||
npm start
|
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
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -389,18 +389,6 @@ Resulting in:
|
|||||||
|
|
||||||
<repo name="aquarius" readme="true"></repo>
|
<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
|
## Swagger spec references
|
||||||
|
|
||||||
Many Swagger fields like the description (`info.description`) are rendered through Markdown so you can write actual Markdown in those fields.
|
Many Swagger fields like the description (`info.description`) are rendered through Markdown so you can write actual Markdown in those fields.
|
||||||
|
@ -72,17 +72,6 @@ module.exports = {
|
|||||||
showCaptions: true
|
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-smartypants',
|
||||||
'gatsby-remark-embed-video',
|
'gatsby-remark-embed-video',
|
||||||
'gatsby-remark-responsive-iframe',
|
'gatsby-remark-responsive-iframe',
|
||||||
|
51796
package-lock.json
generated
51796
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -34,7 +34,6 @@
|
|||||||
"gatsby-remark-code-titles": "^1.1.0",
|
"gatsby-remark-code-titles": "^1.1.0",
|
||||||
"gatsby-remark-component": "^1.1.3",
|
"gatsby-remark-component": "^1.1.3",
|
||||||
"gatsby-remark-embed-video": "^3.1.1",
|
"gatsby-remark-embed-video": "^3.1.1",
|
||||||
"gatsby-remark-github": "^2.0.0",
|
|
||||||
"gatsby-remark-images": "^3.11.1",
|
"gatsby-remark-images": "^3.11.1",
|
||||||
"gatsby-remark-responsive-iframe": "^2.11.0",
|
"gatsby-remark-responsive-iframe": "^2.11.0",
|
||||||
"gatsby-remark-smartypants": "^2.10.0",
|
"gatsby-remark-smartypants": "^2.10.0",
|
||||||
@ -55,14 +54,13 @@
|
|||||||
"react-helmet": "^6.1.0",
|
"react-helmet": "^6.1.0",
|
||||||
"react-json-view": "^1.21.3",
|
"react-json-view": "^1.21.3",
|
||||||
"react-scrollspy": "^3.4.3",
|
"react-scrollspy": "^3.4.3",
|
||||||
"rehype-react": "^7.0.4",
|
"rehype-react": "^7.1.1",
|
||||||
"remark": "^13.0.0",
|
"remark": "^13.0.0",
|
||||||
"remark-github-plugin": "^1.4.0",
|
|
||||||
"remark-react": "^8.0.0",
|
"remark-react": "^8.0.0",
|
||||||
"shortid": "^2.2.16",
|
"shortid": "^2.2.16",
|
||||||
"slugify": "^1.6.5",
|
"slugify": "^1.6.5",
|
||||||
"smoothscroll-polyfill": "^0.4.4",
|
"smoothscroll-polyfill": "^0.4.4",
|
||||||
"swagger-client": "^3.18.4"
|
"swagger-client": "^3.18.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@svgr/webpack": "^5.5.0",
|
"@svgr/webpack": "^5.5.0",
|
||||||
@ -72,9 +70,9 @@
|
|||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"git-format-staged": "^3.0.0",
|
"git-format-staged": "^3.0.0",
|
||||||
"husky": "^7.0.4",
|
"husky": "^8.0.1",
|
||||||
"markdownlint-cli": "^0.31.1",
|
"markdownlint-cli": "^0.31.1",
|
||||||
"node-sass": "^5.0.0",
|
"node-sass": "^6.0.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "^2.6.2"
|
"prettier": "^2.6.2"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user