D0n9X1n / hexo-blog-encrypt

Yet, just another hexo plugin for security.
https://www.npmjs.com/package/hexo-blog-encrypt
MIT License
1.01k stars 103 forks source link

gitee pages 部署失败 错误信息: Pages 部署失败,hbe.style.css 文件可能包含违禁违规内容,请排查调整后再行重试 #203

Closed ZhengXinquan closed 1 year ago

ZhengXinquan commented 1 year ago

Issue

gitee pages 部署失败 错误信息: Pages 部署失败,hbe.style.css 文件可能包含违禁违规内容,请排查调整后再行重试

Expected Behavior

正常布署

Actual Behavior

部署失败,提示 hbe.style.css 文件可能包含违禁违规内容

Steps to Reproduce the Problem

  1. _ 安装 hexo-blog-encrypt
  2. _ hexo clean && hexo g && gexo d 布署到gitee地址上
  3. _ 部署失败

Specifications

theme: butterfly


{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "build": "hexo generate",
    "clean": "hexo clean",
    "deploy": "hexo deploy",
    "server": "hexo server"
  },
  "hexo": {
    "version": "6.3.0"
  },
  "dependencies": {
    "hexo": "^6.3.0",
    "hexo-blog-encrypt": "^3.1.6",
    "hexo-deployer-git": "^4.0.0",
    "hexo-generator-archive": "^2.0.0",
    "hexo-generator-category": "^2.0.0",
    "hexo-generator-index": "^3.0.0",
    "hexo-generator-searchdb": "^1.4.1",
    "hexo-generator-tag": "^2.0.0",
    "hexo-renderer-ejs": "^2.0.0",
    "hexo-renderer-marked": "^6.0.0",
    "hexo-renderer-pug": "^3.0.0",
    "hexo-renderer-stylus": "^2.1.0",
    "hexo-server": "^3.0.0",
    "hexo-theme-landscape": "^0.0.3",
    "hexo-wordcount": "^6.0.1"
  }
}
ZhengXinquan commented 1 year ago

最新测试,将类似以下各主题的注释去除后,可以正常布署。

/* wave theme }}} */

希望大佬可以出个没有注释的版本,不然每次 hexo d 都要删除一次注释。

最后,吐槽gitee的检测机制

ZhengXinquan commented 1 year ago

已上报gitee官方处理完成 https://gitee.com/oschina/git-osc/issues/I6Z57G?from=project-issue