{"id":30593009,"url":"https://github.com/davidingplus/b1-showinfo-docs","last_synced_at":"2025-08-29T18:05:05.231Z","repository":{"id":311856191,"uuid":"1045325907","full_name":"DavidingPlus/b1-showinfo-docs","owner":"DavidingPlus","description":"黑神话悟空九禁连战专用实时关键数据显示 MOD 手册。","archived":false,"fork":false,"pushed_at":"2025-08-29T07:56:38.000Z","size":426,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-29T11:32:47.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://b1.davidingplus.cn/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DavidingPlus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-27T01:52:01.000Z","updated_at":"2025-08-29T07:55:10.000Z","dependencies_parsed_at":"2025-08-29T11:37:23.690Z","dependency_job_id":null,"html_url":"https://github.com/DavidingPlus/b1-showinfo-docs","commit_stats":null,"previous_names":["davidingplus/b1-showinfo","davidingplus/b1-showinfo-docs"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/DavidingPlus/b1-showinfo-docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidingPlus%2Fb1-showinfo-docs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidingPlus%2Fb1-showinfo-docs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidingPlus%2Fb1-showinfo-docs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidingPlus%2Fb1-showinfo-docs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidingPlus","download_url":"https://codeload.github.com/DavidingPlus/b1-showinfo-docs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidingPlus%2Fb1-showinfo-docs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272734612,"owners_count":24984277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-29T18:05:04.351Z","updated_at":"2025-08-29T18:05:05.190Z","avatar_url":"https://github.com/DavidingPlus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 黑神话悟空实时关键数据显示 MOD 手册\n\n该手册基于 [VuePress](https://vuepress.vuejs.org/zh/) 制作。\n\n若希望本地构建此项目，需本机安装 [Node.js](https://nodejs.org)。环境搭建完毕后，在根目录执行：\n\n```bash\n$ npm install\n$ npm run dev\n```\n\n即可通过 `http://localhost:8080` 访问。\n\n## 备注\n\n### 关于 `NODE_OPTIONS`\n\nNode 提供了 `NODE_OPTIONS` 环境变量，用于临时处理一些 Workaround，例如常见的将 OpenSSL 提供者设置为旧版本以保证 VuePress 正常工作。参考[这篇文章](https://blog.csdn.net/weixin_44175041/article/details/131506194)。\n\n我们一般在 `package.json` 的脚本预定义里临时设置环境变量，例如：\n\n``` json\n  \"scripts\": {\n    \"dev\": \"export NODE_OPTIONS=--openssl-legacy-provider \u0026 vuepress dev docs\",\n  }\n```\n\n但是上述代码只能在 Linux 下工作，因为 Windows 下设置环境变量的命令是 `set` 而不是 `export`：\n\n``` json\n  \"scripts\": {\n    \"dev\": \"set NODE_OPTIONS=--openssl-legacy-provider \u0026 vuepress dev docs\",\n  }\n```\n\n为了解决跨平台问题，我们使用 `dotenv` 包，它提供了可以从 `.env` 文件中读取环境变量配置的功能，省去了做跨平台适配的麻烦，参见[这篇文章](https://blog.csdn.net/qq_51574759/article/details/131496233)。最终成果如下：\n\n``` json\n  \"scripts\": {\n    \"dev\": \"dotenv -e .env vuepress dev docs\",\n  }\n```\n\n其中 `.env` 指代根目录下的 `.env` 文件。在文件内部定义环境变量即可。\n\n\u003e 注：[cross-env](https://www.npmjs.com/package/cross-env) 是没办法处理 `NODE_OPTIONS` 环境变量的，经测试只能处理 `NODE_ENV` 环境变量。\n\n### 导出 PDF\n\n在 Windows 下导出 PDF 可能会遇到如下类似的报错：\n\n``` powershell\nError: net::ERR_ADDRESS_INVALID at http://0.0.0.0:8080/\n```\n\n经查询 issue，问题已解决，详见[这里](https://github.com/SnowdogApps/vuepress-plugin-pdf-export/issues/9)。\n\n### GitHub CI\n\n由于生成的 PDF 文档是带中文字体的，而 GitHub CI 的 Docker 的 Ubuntu 镜像默认是没有中文字体的，所以使用 Ubuntu 打出来的 PDF 会缺失中文字体，在 PDF 中就是方格代替，文件大小也会小很多。因此使用 Windows 系统跑 CI。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidingplus%2Fb1-showinfo-docs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidingplus%2Fb1-showinfo-docs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidingplus%2Fb1-showinfo-docs/lists"}