fix kubeVela
This commit is contained in:
parent
e371266fee
commit
c7fbd587e5
|
@ -1 +1 @@
|
|||
https://github.com/volcano-sh/website.git
|
||||
https://github.com/kubevela/kubevela.github.io.git
|
|
@ -1,26 +0,0 @@
|
|||
before_kubevela(){
|
||||
npm install
|
||||
sed -i "s|plugins:\s*\[|plugins: [()=>({name:'umami-analytics',injectHtmlTags:()=>({headTags:[{tagName:'script',attributes:{defer:true,src:'https://umami.cncfstack.com/script.js','data-website-id':'8c8b1d6d-a7fa-43ca-9933-db30591777e9'}}]})}),|g" docusaurus.config.js
|
||||
cat ./docusaurus.config.js
|
||||
}
|
||||
|
||||
after_kubevela(){
|
||||
echo "npm build-----"
|
||||
|
||||
npm run build
|
||||
|
||||
ls -lh
|
||||
|
||||
echo "复制文件到OSS"
|
||||
$OSSUTIL cp -fr build oss://cncfstack-kubevela
|
||||
}
|
||||
|
||||
|
||||
toto(){
|
||||
if cat .git/config |grep '/kubevela/kubevela.github.io.git' ;then
|
||||
echo "/kubevela/kubevela.github.io.git"
|
||||
before_kubevela
|
||||
find_and_sed
|
||||
after_kubevela
|
||||
fi
|
||||
}
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo $1
|
|
@ -6,7 +6,7 @@ source ${initdir}/libs/common.sh
|
|||
|
||||
|
||||
before_kubevela(){
|
||||
npm install
|
||||
yarn install
|
||||
sed -i "s|plugins:\s*\[|plugins: [()=>({name:'umami-analytics',injectHtmlTags:()=>({headTags:[{tagName:'script',attributes:{defer:true,src:'https://umami.cncfstack.com/script.js','data-website-id':'8c8b1d6d-a7fa-43ca-9933-db30591777e9'}}]})}),|g" docusaurus.config.js
|
||||
cat ./docusaurus.config.js
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ before_kubevela(){
|
|||
after_kubevela(){
|
||||
echo "npm build-----"
|
||||
|
||||
npm run build
|
||||
yarn build
|
||||
|
||||
ls -lh
|
||||
|
||||
|
|
Loading…
Reference in New Issue