Skip to content

Commit

Permalink
Change export feishu url style to original
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Nov 24, 2023
1 parent 61a6b51 commit 0828b1a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/download_feishu_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/hk2cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 0 additions & 1 deletion scripts/normalize_missing_docs_markdown_fields.js
Original file line number Diff line number Diff line change
@@ -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";

Expand Down

0 comments on commit 0828b1a

Please sign in to comment.