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:
parent
9215c4bf9a
commit
63780c0a16
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -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:
|
||||
|
@ -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.
|
||||
```
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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',
|
||||
|
51726
package-lock.json
generated
51726
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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",
|
||||
@ -57,7 +56,6 @@
|
||||
"react-scrollspy": "^3.4.3",
|
||||
"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",
|
||||
@ -74,7 +72,7 @@
|
||||
"git-format-staged": "^3.0.0",
|
||||
"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"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user