File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Q: What is this dockerfile for?
2
2
# A: https://docusaurus.io/docs/en/docker
3
3
4
- FROM node:8.11.4
4
+ # Unify with our CI test image node version
5
+ FROM node:10.15.2
5
6
6
7
WORKDIR /app/website
7
8
Original file line number Diff line number Diff line change 1
1
version : " 3"
2
2
3
3
services :
4
- docusaurus :
4
+ link-checker :
5
+ image : web3f/link-checker:v1.0.1
6
+ command : /bin/bash -c "sleep 20 && linkchecker --ignore-url=\"^(?:(?!\/en\/).)*$$\" --check-extern http://main:3000/"
7
+ depends_on :
8
+ - main
9
+
10
+ main :
5
11
build : .
6
12
ports :
7
13
- 3000:3000
Original file line number Diff line number Diff line change 9
9
"rename-version" : " docusaurus-rename-version" ,
10
10
"crowdin-upload" : " crowdin --config ../crowdin.yaml upload sources --auto-update -b master" ,
11
11
"crowdin-download" : " crowdin --config ../crowdin.yaml download -b master" ,
12
- "check-links" : " yarn blc http://localhost:3000 -ro --exclude \" http://localhost:3000/docs/ru\" --exclude \" http://localhost:3000/docs/zh-CN\" --exclude \" https://playground.substrate.dev/\" --exclude \" https://player.twitch.tv/?channel=paritylivecoding\" --exclude \" http://localhost:8000/\" "
12
+ "check-links" : " yarn check-links-cleanup && docker-compose up" ,
13
+ "check-links-cleanup" : " docker-compose down --remove-orphans"
13
14
},
14
15
"devDependencies" : {
15
16
"broken-link-checker" : " ^0.7.8" ,
You can’t perform that action at this time.
0 commit comments