1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Dependency & CI fixes (#1030)

* run against Node.js v16

* bump node-sass, fresh package-lock.json

* legacy-peer-deps

* remove gatsby-remark-github

* downgrade node-sass to v6.0.1
This commit is contained in:
Matthias Kretschmann 2022-06-21 13:27:11 +01:00 committed by GitHub
parent 9215c4bf9a
commit 63780c0a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 41461 additions and 10310 deletions

View File

@ -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:

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: 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.
``` ```

View File

@ -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.

View File

@ -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',

51726
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-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",
@ -57,7 +56,6 @@
"react-scrollspy": "^3.4.3", "react-scrollspy": "^3.4.3",
"rehype-react": "^7.1.1", "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",
@ -74,7 +72,7 @@
"git-format-staged": "^3.0.0", "git-format-staged": "^3.0.0",
"husky": "^8.0.1", "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"
}, },