15858193327 9 months ago
parent
commit
a2bcc98449
1 changed files with 4 additions and 4 deletions
  1. 4 4
      .drone.yml

+ 4 - 4
.drone.yml

@@ -16,15 +16,15 @@ steps:
   - echo "【生成HTML cost="$((`date +%s` - $_start_time_x))"s"
   # 加备案号
   - export _start_time_x=`date +%s`
-  - find target/shoulder-specs/ -type f -name "index.html" | xargs sed -i 's#<div id="footer-text">#<div id="footer-text"><a href="https://beian.miit.gov.cn/" target="_blank">鲁ICP备20024731号-1</a>#g'
+  - find target/shoulder-specs/ -type f -name "index.html" | xargs sed -i 's#<div id="footer-text">#<div id="footer-text"><a href="https://beian.miit.gov.cn/" target="_blank">鲁ICP备20024731号-1</a></br>#g'
   - echo "【加备案号 cost="$((`date +%s` - $_start_time_x))"s"
   # 国内访问加速: 替换 css、js 为国内七牛云 cdn 地址
   - export _start_time_x=`date +%s`
-  #- find target/shoulder-specs/ -type f -name "*.html" | xargs sed -i 's#cdnjs.cloudflare.com/ajax/libs#cdn.staticfile.org#g'
+  - find target/shoulder-specs/ -type f -name "*.html" | xargs sed -i 's#cdnjs.cloudflare.com/ajax/libs#cdn.staticfile.org#g'
   - echo "【替换css cost="$((`date +%s` - $_start_time_x))"s"
   # 国内访问加速: 替换 google 字体地址为 其他的
   - export _start_time_x=`date +%s`
-  #- find target/shoulder-specs/ -type f -name "*.html" | xargs sed -i 's#fonts.googleapis.com#fonts.cat.net#g'
+  - find target/shoulder-specs/ -type f -name "*.html" | xargs sed -i 's#fonts.googleapis.com#fonts.cat.net#g'
   - echo "【替换字体 cost="$((`date +%s` - $_start_time_x))"s"
   #- sed -i "s!cdnjs.cloudflare.com/ajax/libs!cdn.staticfile.org!g" `grep cdnjs.cloudflare -rl target/shoulder-specs/`
   # 搬运到web目录(目前不会删除历史文档,只有更新)
@@ -46,7 +46,7 @@ volumes:
     
 - name: htmlDir
   host:
-    path: /opt/web/shoulderSpecsDocx
+    path: /opt/web/shoulderSpecsDoc
 
 trigger:
   branch: