fix chaosmesh sitemap
This commit is contained in:
parent
4186fe2a63
commit
9ad2fb3272
|
@ -10,6 +10,6 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Push To-To-To
|
- name: Push To-To-To
|
||||||
run: |
|
run: |
|
||||||
/bin/bash build.sh https://github.com/litmuschaos/litmus-docs.git
|
/bin/bash build.sh https://github.com/chaos-mesh/website.git
|
||||||
src=`cat project_dir/ret-data|grep -v ^$|head -n 1`
|
src=`cat project_dir/ret-data|grep -v ^$|head -n 1`
|
||||||
./ossutil --access-key-id ${{ secrets.ALIYUN_CYG_OSS_AK }} --access-key-secret ${{ secrets.ALIYUN_CYG_OSS_SK }} --endpoint ${{ secrets.ALIYUN_CYG_OSS_ENDPOINT }} --region ${{ secrets.ALIYUN_CYG_OSS_REGION }} cp -f ${src} oss://cncfstack-website/
|
./ossutil --access-key-id ${{ secrets.ALIYUN_CYG_OSS_AK }} --access-key-secret ${{ secrets.ALIYUN_CYG_OSS_SK }} --endpoint ${{ secrets.ALIYUN_CYG_OSS_ENDPOINT }} --region ${{ secrets.ALIYUN_CYG_OSS_REGION }} cp -f ${src} oss://cncfstack-website/
|
4
all.list
4
all.list
|
@ -1,9 +1,7 @@
|
||||||
https://github.com/open-telemetry/opentelemetry.io.git
|
https://github.com/open-telemetry/opentelemetry.io.git
|
||||||
https://github.com/helm/helm-www.git
|
https://github.com/helm/helm-www.git
|
||||||
https://github.com/kubernetes/website.git
|
https://github.com/kubernetes/website.git
|
||||||
|
|
||||||
https://github.com/vitessio/website.git
|
https://github.com/vitessio/website.git
|
||||||
|
|
||||||
https://github.com/kubeedge/website.git
|
https://github.com/kubeedge/website.git
|
||||||
https://github.com/openyurtio/openyurt.io.git
|
https://github.com/openyurtio/openyurt.io.git
|
||||||
https://github.com/karmada-io/website.git
|
https://github.com/karmada-io/website.git
|
||||||
|
@ -13,11 +11,9 @@ https://github.com/volcano-sh/website.git
|
||||||
https://github.com/fluxcd/website.git
|
https://github.com/fluxcd/website.git
|
||||||
https://github.com/tikv/website.git
|
https://github.com/tikv/website.git
|
||||||
https://github.com/etcd-io/website.git
|
https://github.com/etcd-io/website.git
|
||||||
|
|
||||||
https://github.com/jaegertracing/documentation.git
|
https://github.com/jaegertracing/documentation.git
|
||||||
https://github.com/grpc/grpc.io.git
|
https://github.com/grpc/grpc.io.git
|
||||||
https://github.com/emissary-ingress/emissary-ingress.dev.git
|
https://github.com/emissary-ingress/emissary-ingress.dev.git
|
||||||
|
|
||||||
https://github.com/kedacore/keda-docs.git
|
https://github.com/kedacore/keda-docs.git
|
||||||
https://github.com/kubeflow/website.git
|
https://github.com/kubeflow/website.git
|
||||||
https://github.com/istio/istio.io.git
|
https://github.com/istio/istio.io.git
|
||||||
|
|
|
@ -4,7 +4,12 @@ before_build(){
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
# 添加网站访问统计JS
|
||||||
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':'e560133a-5a27-40ad-b816-9896199ffb01'}}]})}),|g" docusaurus.config.js
|
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':'e560133a-5a27-40ad-b816-9896199ffb01'}}]})}),|g" docusaurus.config.js
|
||||||
|
|
||||||
|
# URL 配置影响站点的 sitemap.xml 文件的生成
|
||||||
|
sed -i "s|url: 'https://chaos-mesh.org',|url: 'https://chaosmesh.website.cncfstack.com',|g" docusaurus.config.js
|
||||||
|
|
||||||
cat ./docusaurus.config.js
|
cat ./docusaurus.config.js
|
||||||
|
|
||||||
# plugins: [
|
# plugins: [
|
||||||
|
|
Loading…
Reference in New Issue