From 0828b1a0afc2cbf79b67b61b7d8f64825cc51423 Mon Sep 17 00:00:00 2001 From: mixbo Date: Fri, 24 Nov 2023 16:42:14 +0800 Subject: [PATCH] Change export feishu url style to original --- .github/workflows/download_feishu_pages.yml | 1 + bun.lockb | Bin 84225 -> 84980 bytes package.json | 2 +- scripts/hk2cn.js | 2 +- .../normalize_missing_docs_markdown_fields.js | 1 - 5 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/download_feishu_pages.yml b/.github/workflows/download_feishu_pages.yml index 0d7de695..b73f15d6 100644 --- a/.github/workflows/download_feishu_pages.yml +++ b/.github/workflows/download_feishu_pages.yml @@ -29,6 +29,7 @@ jobs: FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }} FEISHU_SPACE_ID: "7288219896826494980" OUTPUT_DIR: ./feishu-pages + URL_STYLE: original uses: longbridgeapp/feishu-pages@main - uses: oven-sh/setup-bun@v1 diff --git a/bun.lockb b/bun.lockb index b582770c5cbc660e5edf82094b12d6342eaff166..135763a95bcfb4baa60e35e60f178478fa58de2a 100755 GIT binary patch delta 5655 zcmeHL30G7{7Jk*xz(ZQW(V?LsqJfAD4ZT1^fNnrsutCL{*e>Hl;}VU;6%(VA0Uc3L zF*Fy_ps1iCCZmZ+j3$nWOB7VdNQ{cccr?+;ax}-xiP;pG@Ai_IIkWwMd8fa3>$`R9 z)~#Fh`qitI<;rgy$};Vso2A9O`i=Z>!@%2(uSFc6CvUq^dn>%SEaLsZ+>YrcYY$`>8 z`-9)3bY<|QUxW1m^L5LyMptb;BzwK7lcXTX4oK!}<0VOkybP&=JPX+qas?#UFIg@EjGI)INBv%hBp$&w#3!Hn%1Mdqt1Co2_c-$3POtPzo z=}TUiKV#n9d>iVyryNKgN2ZP@`)CWYV_kISg8W(YpOd8RzLL}f)k$WT`9JgN%jPcN zjHFv!?sbqHP6Ye}L(WKZ4R9hP`^kpnZc`ySVFpO<-tA|I#1}i*n;}X4Aj=@bAs0hF z0%?QPKqh81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 }, "dependencies": { "autocorrect-node": "^2.8.4", - "feishu-pages": "^0.5.4", + "feishu-pages": "^0.6.1", "glob": "^10.3.10", "medium-zoom": "^1.0.8", "opencc-js": "^1.0.5", diff --git a/scripts/hk2cn.js b/scripts/hk2cn.js index c37a4b16..dcc6da88 100755 --- a/scripts/hk2cn.js +++ b/scripts/hk2cn.js @@ -21,7 +21,7 @@ const convertDocsContentHK2CN = (doc) => { let newDoc = Object.assign({}, doc); newDoc.title = converter(newDoc.title); newDoc.slug = newDoc.slug.replace("zh-HK", "zh-CN"); - if (newDoc.meta) { + if (newDoc.meta?.slug) { newDoc.meta.slug = newDoc.meta.slug.replace("zh-HK", "zh-CN"); } newDoc.filename = newDoc.filename.replace("zh-HK", "zh-CN"); diff --git a/scripts/normalize_missing_docs_markdown_fields.js b/scripts/normalize_missing_docs_markdown_fields.js index 0e18cd18..e038f1fe 100755 --- a/scripts/normalize_missing_docs_markdown_fields.js +++ b/scripts/normalize_missing_docs_markdown_fields.js @@ -1,7 +1,6 @@ // 删除掉 docs.json 文件中未出现的 markdown 文件 import path from "path"; import fs from "fs"; -import { exec } from "child_process"; import { glob } from "glob"; import { removeMDFile } from "./remove_hide_file";