Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Rename longbridgeapp to longbridge. #29

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- release-pages
release:
types: [published, edited, deleted, unpublished]

permissions:
contents: read
pages: write
Expand All @@ -28,8 +28,8 @@ jobs:
FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }}
FEISHU_SPACE_ID: "7273324757679325186"
OUTPUT_DIR: ./dist
BASE_URL: https://longbridgeapp.github.io/feishu-pages/
uses: longbridgeapp/feishu-pages@main
BASE_URL: https://longbridge.github.io/feishu-pages/
uses: longbridge/feishu-pages@main
- name: Build Website
run: |
cp -r dist/docs/* website/docs/
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPMENT
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ bun run dev
2. Create git tag with the same version number.
3. Push the tag to GitHub.
4. Then the GitHub Action will automatically release the new version to npm.
5. Write Releate Notes in [Release Page](https://github.com/longbridgeapp/feishu-pages/releases)
5. Write Releate Notes in [Release Page](https://github.com/longbridge/feishu-pages/releases)
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Features

- [feishu-docx](https://github.com/longbridgeapp/feishu-pages/tree/main/feishu-docx) - 支持将飞书新版文档 Docx 转换为 Markdown 或其他格式(_目前只支持 Markdown_)
- [feishu-docx](https://github.com/longbridge/feishu-pages/tree/main/feishu-docx) - 支持将飞书新版文档 Docx 转换为 Markdown 或其他格式(_目前只支持 Markdown_)
- 目录结构组织,与 URL 路径自定义
- 图片、附件下载
- 国际化支持
Expand Down Expand Up @@ -101,7 +101,7 @@ yarn feishu-pages

按上面默认的配置,最终会在 `./dist` 目录下生成 Markdown 文件以及导出的图片文件,如果你期望调整目录,可以自己设置 `OUTPUT_DIR` 环境变量。

> 💡 文档内 [Page Mata](https://longbridgeapp.github.io/feishu-pages/zh-CN/page-meta) 标识为 `hide: true` 的文档将会被排除掉,你可以用来隐藏一些不想公开的文档。
> 💡 文档内 [Page Mata](https://longbridge.github.io/feishu-pages/zh-CN/page-meta) 标识为 `hide: true` 的文档将会被排除掉,你可以用来隐藏一些不想公开的文档。
>
> 所有的 Markdown 导出的文件名将遵循知识库的目录树,并按照 Page Meta 里面的 `slug` 来整理文件夹和文件名。

Expand All @@ -111,7 +111,7 @@ yarn feishu-pages

> NOTE: 你需要用到 VitePress 或 Docusaurus 之类的文档工具,这里假设他们在项目根目录有 `yarn build` 命令可以将 `docs` 文件夹的 Markdown 文件生成为静态网站。
>
> 具体可以参考:https://github.com/longbridgeapp/feishu-pages/tree/main/website
> 具体可以参考:https://github.com/longbridge/feishu-pages/tree/main/website

```yml
on:
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }}
FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }}
FEISHU_SPACE_ID: ${{ secrets.FEISHU_SPACE_ID }}
uses: longbridgeapp/feishu-pages@main
uses: longbridge/feishu-pages@main
- name: Build Pages
run: |
cp -r dist/docs ./
Expand Down
2 changes: 1 addition & 1 deletion feishu-docx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Convert Feishu Docx into other formats (Markdown, HTML ...)

Visit [https://github.com/longbridgeapp/feishu-pages](https://github.com/longbridgeapp/feishu-pages) to learn more.
Visit [https://github.com/longbridge/feishu-pages](https://github.com/longbridge/feishu-pages) to learn more.

## How to add new fixture

Expand Down
2 changes: 1 addition & 1 deletion feishu-docx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": {
"url": "https://github.com/longbridgeapp/feishu-pages"
"url": "https://github.com/longbridge/feishu-pages"
},
"publisher": "Jason Lee",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion feishu-docx/src/markdown_renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class MarkdownRenderer extends Renderer {
* Return false if not found first code block.
* Otherwise return true if parsed as YAML, false if not YAML.
*
* https://longbridgeapp.github.io/feishu-pages/zh-CN/page-meta
* https://longbridge.github.io/feishu-pages/zh-CN/page-meta
*
* @param block
* @returns
Expand Down
4 changes: 2 additions & 2 deletions feishu-docx/tests/fixtures/case3.expect.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

## <b>Features</b>

- [feishu-docx](https://github.com/longbridgeapp/feishu-pages/tree/main/feishu-docx) - 支持将飞书新版文档 Docx 转换为 Markdown 或其他格式(<em>目前只支持 Markdown</em>)
- [feishu-docx](https://github.com/longbridge/feishu-pages/tree/main/feishu-docx) - 支持将飞书新版文档 Docx 转换为 Markdown 或其他格式(<em>目前只支持 Markdown</em>)
- 目录结构组织
- 图片下载
- 与 GitHub Actions 结合
Expand Down Expand Up @@ -169,4 +169,4 @@ yarn feishu-pages

## <b>License</b>

MIT
MIT
4 changes: 2 additions & 2 deletions feishu-docx/tests/fixtures/case3.raw.json
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@
"inline_code": false,
"italic": false,
"link": {
"url": "https%3A%2F%2Fgit.luolix.top%2Flongbridgeapp%2Ffeishu-pages%2Ftree%2Fmain%2Ffeishu-docx"
"url": "https%3A%2F%2Fgit.luolix.top%2Flongbridge%2Ffeishu-pages%2Ftree%2Fmain%2Ffeishu-docx"
},
"strikethrough": false,
"underline": false
Expand Down Expand Up @@ -4572,4 +4572,4 @@
}
}
]
}
}
2 changes: 1 addition & 1 deletion feishu-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.7.6",
"description": "Generate Feishu Wiki into a Markdown for work with Static Page Generators.",
"repository": {
"url": "https://github.com/longbridgeapp/feishu-pages"
"url": "https://github.com/longbridge/feishu-pages"
},
"license": "MIT",
"readme": "../README.md",
Expand Down
4 changes: 2 additions & 2 deletions website/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default defineConfig({
},
{
text: 'GitHub',
link: 'https://github.com/longbridgeapp/feishu-pages',
link: 'https://github.com/longbridge/feishu-pages',
},
],

Expand All @@ -89,7 +89,7 @@ export default defineConfig({
'zh-CN': docsSidebarZHCN,
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/longbridgeapp/feishu-pages' },
{ icon: 'github', link: 'https://github.com/longbridge/feishu-pages' },
],
},
});
2 changes: 1 addition & 1 deletion website/generate-releases.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const fs = require('fs');
const fetch = require('node-fetch');

const targetFile = 'docs/releases.md';
const repo = 'longbridgeapp/feishu-pages';
const repo = 'longbridge/feishu-pages';
const pageSize = 200;

const fetchRelease = async () => {
Expand Down
Loading