From a4e8634d7cb038c298f00e64554396044d6e63c4 Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 4 Mar 2024 17:17:42 +0800 Subject: [PATCH 1/8] docs: update README --- README.md | 84 ++++++++++++++----- README_zh_CN.md | 58 +++++++++++-- .../api/telegraph/telegraphApiAdaptor.ts | 4 +- 3 files changed, 117 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 3f3c86cd..ef031ff7 100644 --- a/README.md +++ b/README.md @@ -8,25 +8,71 @@ Publish articles from siyuan-note to platforms like Yuque etc. `Free` and `open If you're interested in the paid professional version, please check the paied ➡️ [Publishing Tool Professional Edition](https://github.com/terwer/siyuan-plugin-publisher-pro) -> Recent update: 🎉 Introducing Publisher Version `1.19.0` - -- Version `1.19.1` mainly fixes the following issues: - - Text inside code blocks should not be incorrectly escaped. -- Version `1.19.1` primarily includes the following underlying changes: - - Upgrade element-plus to 2.5.5+. - - Upgrade vue to 3.4.19+. - - Upgrade siyuan sdk to 0.9.3. -- Version `1.19.0` primarily resolves the following issues: - - Rectifies the parsing error in Zhihu's formula rendering caused by escaped text. -- Version `1.19.0` includes significant underlying changes: - - Upgrades Vite to Vite5+ - - Upgrades Release-please to version 4+ - - Upgrades Vue to version 3.4.5+ -- Ahem, in addition, the author secretly developed an import feature after version `1.14.0`. You can easily import predefined platforms through the `Settings` -> `Publish Settings` -> `Import Predefined Platforms` function 😄 - -> [Click here](https://blog.terwer.space/s/20230810132040-nn4q7vs) to access the latest documentation. - -**For any further inquiries or suggestions, please join QQ Group `895063267` for discussion** +> The latest Publish Tool version `1.20.0` is released🎉, potentially one of the most revolutionary iterations since the inception of first releases👀. + +- Notable inclusions within version `1.20.0` comprise the introduction of additional publishing platforms, an initial foray into supporting the docker version, along with enhancements tailored to optimize user interactions. + + - The prominent features integrated into `1.20.0` encompass: + + - #958 #1009 Experimental support for the docker edition of siyuan-note, marking a preliminary step towards its implementation. Should anomalies surface during deployment, the extension welcomes the addition of GitHub issues for resolution. + - #1053 Introduction of the publishing platform telegra.ph + - **Please note: Unavailability of CORS proxy configuration will render the functionality inactive!!! Furthermore, accessing article previews mandates circumventing restrictions via appropriate means.** + - For discussions on CORS proxy complications or other inquiries, feel free to engage in group discussions or reach out to the author at youweics@163.com + - #1054 Addition of article management capabilities + - Renamed article management as Dashboard. Feedback regarding nomenclature adjustments can be deliberated via issues, facilitating responsive modifications by the author. + - Facilitation of displaying all platform publication icons + - Provision for exhibiting the count of publishing platforms + - Integration of filters for curated published articles + + - `1.20.0` predominantly refines the following areas of focus: + + - Incorporation of development documentation alongside a preview of forthcoming version agendas + - Enhanced Plugin Store experience + - Streamlined import processes, now accommodating customized imports + + - Furthermore, post the `1.14.0` version, the author discretely developed an import function. Users can swiftly import built-in platforms through `Settings` -> `Publish Settings` -> `Import Predefined Platforms` feature 😄 + +> For further details, kindly [click here](https://blog.terwer.space/s/20230810132040-nn4q7vs) to peruse the latest help documentation. + +**Should you encounter any issues or wish to submit suggestions, feel free to join QQ group `895063267` for discussions.** + +## Version Preview + +### 1.20.1-preview – As of Q1 2024 + +- Expansion of telegra.ph support for image uploads + - Reference: https://www.npmjs.com/package/telegraph-uploader +- Rectification of scenarios entailing repetitive image uploads across select platforms +- Resolution of formatting discrepancies within WeChat public accounts +- #990 Rectification of irregular display issues while posting to Jian Shu +- #989 Failure in posting certain articles to Notion +- Rectifying error scenarios during posting to WeChat public accounts in certain contexts +- #948 #905 Corrections addressing halo platform-related concerns +- Addressing vuepress2 related issues + +### 1.21.0-preview – As of Q1 2024 + +- Inclusion of support for BiliBili and Xiaohongshu platforms + +### 1.22.0-preview – As of Q2 2024 + +- Embracing compatibility for Evernote and Antora (including GitHub and GitLab) + +### 1.23.0-preview – As of Q2 2024 + +- Enabling support for Docsify (inclusive of GitHub and GitLab) and Douban + +### 1.24.0-preview – As of Q2 2024 + +- Integration with flowus platform + +### 1.25.0-preview – As of Q2 2024 + +- Extending support to Xlog, mdnice, and zola platforms + +### 1.26.0-preview – As of Q3 2024 + +- Collaborative interactions with #956 and OceanPress ## Update history diff --git a/README_zh_CN.md b/README_zh_CN.md index 1fc25362..eafa6997 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -8,25 +8,67 @@ 如果您对 [增值功能](https://github.com/terwer/siyuan-plugin-publisher/issues/846) 感兴趣,请移步 ➡️ 收费的 [发布工具专业版](https://github.com/terwer/siyuan-plugin-publisher-pro) -> 最近的新版本:🎉 发布工具新版本 `1.20.0` 发布 +> 最近的新版本:🎉 发布工具新版本 `1.20.0` 发布,可能是插件发布以来,革命性变更最大的版本之一👀 -- `1.20.0` 新增部分发布平台,初步支持 docker 版本,同时修复了一些已知问题。 +- `1.20.0` 新增部分发布平台,初步支持 docker 版本,同时对用户的使用体验进行了优化。 - `1.20.0` 主要新增以下特性: - #958 #1009 支持 docker 版本的思源笔记实验性 - 此版本初步支持了 docker 版本的思源笔记,如果某些情况下发布异常,欢迎GitHub 新增 issue 反馈。 - #1053 新增发布平台 telegra.ph - - **注意:此功能需要科学上网,请自行解决科学上网的问题。** - - #1054 新增文章管理功能:目前是简单版,后续会继续优化 + - **注意:如果未配置 CORS 代理,功能将不可用!!!,而且文章预览需要科学上网,请自行解决科学上网的问题。** + - CORS 代理问题可加群讨论或者私聊作者 youweics@163.com + - #1054 新增文章管理功能new - 文章管理重命名为仪表盘。关于名称,可在 issue 讨论,作者会根据反馈进行调整。 -- `1.20.0` 主要修复以下缺陷: - - #990 修复发布到简书时部分格式显示不正常的问题 + - 支持显示所有平台发布图标 + - 支持显示发布平台数量 + - 支持筛选已发布文章 - `1.20.0` 主要优化以下方面: - - 新增开发文档 + - 新增开发文档,新增下版本开发计划预告 + - 优化插件商店体验new + - 优化导入体验,现在支持自定义导入了实验性 - 咳咳,另外,在 `1.14.0` 版本之后,作者还悄悄开发了导入功能。您可以使用 `设置` -> `发布设置` -> `导入预定义平台` 功能快速导入内置平台 😄 > [猛击这里](https://blog.terwer.space/s/20230810132040-nn4q7vs),查看最新帮助文档。 -**遇到其他问题或者需求建议?请加 QQ 群 `895063267` 讨论。或者查看下面的在线文档:** +**遇到其他问题或者需求建议?请加 QQ 群 `895063267` 讨论。** + +## 版本预告 + +### 1.20.1-preview - 截止到 2024 年 Q1 + +- telegra.ph 支持上传图片 + - 参考 https://www.npmjs.com/package/telegraph-uploader +- 解决部分平台在某些场景下重复上传图片的问题 +- 修复微信公众号排版问题 +- #990 修复发布到简书时部分格式显示不正常的问题 +- #989 部分文章发布到 Notion 失败 +- 修复部分场景发布到微信公众号报错的问题 +- #948 #905 halo 平台相关问题修复 +- vuepress2 相关问题 + +### 1.21.0-preview - 截止到 2024 年 Q1 + + - 支持 B 站、小红书 + +### 1.22.0-preview - 截止到 2024 年 Q2 + + - 支持 Evernote、Antora(包括 GitHub 和 gitlab) + +### 1.23.0-preview - 截止到 2024 年 Q2 + + - 支持 Docsify(包括 GitHub 和 gitlab)、Douban + +### 1.24.0-preview - 截止到 2024 年 Q2 + + - 支持 flowus + +### 1.25.0-preview - 截止到 2024 年 Q2 + + - 支持 Xlog、mdnice、zola + +### 1.26.0-preview - 截止到 2024 年 Q3 + + - #956 和 OceanPress 联动 ## 更新历史 diff --git a/src/adaptors/api/telegraph/telegraphApiAdaptor.ts b/src/adaptors/api/telegraph/telegraphApiAdaptor.ts index 557653d1..97af96a6 100644 --- a/src/adaptors/api/telegraph/telegraphApiAdaptor.ts +++ b/src/adaptors/api/telegraph/telegraphApiAdaptor.ts @@ -71,7 +71,7 @@ class TelegraphApiAdaptor extends BaseBlogApi { const content = [{ tag: "p", attrs: { dir: "auto" }, children: ["测试正文"] }] const blobData = new Blob([JSON.stringify(content)], { type: "text/plain" }) formData.append("Data", blobData, "content.html") - formData.append("title", "测试标题") + formData.append("title", post.title) formData.append("author", this.cfg.username) formData.append("save_hash", this.cfg.password) formData.append("page_id", "0") @@ -100,7 +100,7 @@ class TelegraphApiAdaptor extends BaseBlogApi { const content = [{ tag: "p", attrs: { dir: "auto" }, children: ["测试正文3"] }] const blobData = new Blob([JSON.stringify(content)], { type: "text/plain" }) formData.append("Data", blobData, "content.html") - formData.append("title", "测试标题3") + formData.append("title", post.title) formData.append("author", this.cfg.username) formData.append("save_hash", this.cfg.password) formData.append("page_id", postMeta.page_id) From 3f4534620377856fbfaf652dba9a02f16d5589a4 Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 4 Mar 2024 17:26:03 +0800 Subject: [PATCH 2/8] =?UTF-8?q?#1053=20=E6=96=B0=E5=A2=9E=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=B9=B3=E5=8F=B0=20telegra.ph?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom.d.ts | 3 +- package.json | 1 + pnpm-lock.yaml | 32 ++++++++++++++++++- .../api/telegraph/telegraphApiAdaptor.ts | 5 +-- 4 files changed, 37 insertions(+), 4 deletions(-) diff --git a/custom.d.ts b/custom.d.ts index af66f74f..73760152 100644 --- a/custom.d.ts +++ b/custom.d.ts @@ -25,4 +25,5 @@ declare module "zhi-notion-markdown" declare module "uuid" -declare module "cookie-parse" \ No newline at end of file +declare module "cookie-parse" +declare module "telegraph.md" \ No newline at end of file diff --git a/package.json b/package.json index 56739374..d2fa3bff 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,7 @@ "simple-xmlrpc": "^1.4.2", "siyuan": "^0.9.4", "siyuan-plugin-picgo": "^1.4.4", + "telegraph.md": "^0.0.1", "unplugin-icons": "^0.18.5", "uuid": "^9.0.1", "vue": "^3.4.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 804f81fa..6c8145b6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -68,6 +68,9 @@ dependencies: siyuan-plugin-picgo: specifier: ^1.4.4 version: 1.4.4(typescript@5.3.3) + telegraph.md: + specifier: ^0.0.1 + version: 0.0.1 unplugin-icons: specifier: ^0.18.5 version: 0.18.5 @@ -2864,6 +2867,16 @@ packages: resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==} engines: {node: '>= 12'} + /commonmark@0.28.1: + resolution: {integrity: sha512-PklsZ9pgrfFQ5hQH9BRzoWnqI9db2LeR9MhvkNk8iz97kfaTNmhTU+IE8jKDHTEfivZZXoFqzGqzddXdk14EJw==} + hasBin: true + dependencies: + entities: 1.1.2 + mdurl: 1.0.1 + minimist: 1.2.8 + string.prototype.repeat: 0.2.0 + dev: false + /computeds@0.0.1: resolution: {integrity: sha512-7CEBgcMjVmitjYo5q8JTJVra6X5mQ20uTThdK+0kR7UEaDrAWEQcRiBtWJzga4eRpP6afNwwLsX2SET2JhVB1Q==} dev: true @@ -3368,6 +3381,10 @@ packages: once: 1.4.0 dev: true + /entities@1.1.2: + resolution: {integrity: sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==} + dev: false + /entities@2.2.0: resolution: {integrity: sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==} dev: true @@ -5462,6 +5479,10 @@ packages: resolution: {integrity: sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==} dev: true + /mdurl@1.0.1: + resolution: {integrity: sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==} + dev: false + /memoize-one@6.0.0: resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==} dev: false @@ -5629,7 +5650,6 @@ packages: /minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - dev: true /minipass@2.9.0: resolution: {integrity: sha512-wxfUjg9WebH+CUDX/CdbRlh5SmfZiy/hpkxaRI16Y9W56Pa75sWgd/rvFilSgrauD9NyFymP/+JFV3KwzIsJeg==} @@ -6949,6 +6969,10 @@ packages: strip-ansi: 7.1.0 dev: true + /string.prototype.repeat@0.2.0: + resolution: {integrity: sha512-1BH+X+1hSthZFW+X+JaUkjkkUPwIlLEMJBLANN3hOob3RhEk5snLWNECDnYbgn/m5c5JV7Ersu1Yubaf+05cIA==} + dev: false + /string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} dependencies: @@ -7108,6 +7132,12 @@ packages: yallist: 4.0.0 dev: true + /telegraph.md@0.0.1: + resolution: {integrity: sha512-jU4816CV//56Yja8ZmiKpPHPC5zlk/X9uXzHnwaA1R/Ohc2Glg76qDm94JfrPvMZj+Gvq7tKGJXZ76/kE4mjUw==} + dependencies: + commonmark: 0.28.1 + dev: false + /terser@5.28.1: resolution: {integrity: sha512-wM+bZp54v/E9eRRGXb5ZFDvinrJIOaTapx3WUokyVGZu5ucVCK55zEgGd5Dl2fSr3jUo5sDiERErUWLY6QPFyA==} engines: {node: '>=10'} diff --git a/src/adaptors/api/telegraph/telegraphApiAdaptor.ts b/src/adaptors/api/telegraph/telegraphApiAdaptor.ts index 97af96a6..4ed2ce3e 100644 --- a/src/adaptors/api/telegraph/telegraphApiAdaptor.ts +++ b/src/adaptors/api/telegraph/telegraphApiAdaptor.ts @@ -28,6 +28,7 @@ import { Post, UserBlog } from "zhi-blog-api" import { TelegraphConfig } from "~/src/adaptors/api/telegraph/telegraphConfig.ts" import { JsonUtil, StrUtil } from "zhi-common" import CookieUtils from "~/src/utils/cookieUtils.ts" +import md from "telegraph.md" /** * Telegraph API 适配器 @@ -68,7 +69,7 @@ class TelegraphApiAdaptor extends BaseBlogApi { public async newPost(post: Post, _publish?: boolean): Promise { const formData = new FormData() - const content = [{ tag: "p", attrs: { dir: "auto" }, children: ["测试正文"] }] + const content = md(post.description) const blobData = new Blob([JSON.stringify(content)], { type: "text/plain" }) formData.append("Data", blobData, "content.html") formData.append("title", post.title) @@ -97,7 +98,7 @@ class TelegraphApiAdaptor extends BaseBlogApi { const postMeta = JsonUtil.safeParse(postid, {}) const formData = new FormData() - const content = [{ tag: "p", attrs: { dir: "auto" }, children: ["测试正文3"] }] + const content = md(post.description) const blobData = new Blob([JSON.stringify(content)], { type: "text/plain" }) formData.append("Data", blobData, "content.html") formData.append("title", post.title) From 7856c17c33e91292084a01a2c5e818e527641f66 Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 4 Mar 2024 17:28:14 +0800 Subject: [PATCH 3/8] =?UTF-8?q?#1053=20=E6=96=B0=E5=A2=9E=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E5=B9=B3=E5=8F=B0=20telegra.ph?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + README_zh_CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index ef031ff7..267badf0 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ Names not listed in order - [ ] Xlog - TODO - [ ] Mdnice - TODO - [ ] Flowus - TODO +- [X] telegra.ph ## Core Features diff --git a/README_zh_CN.md b/README_zh_CN.md index eafa6997..8c17bd4f 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -120,6 +120,7 @@ - [ ] Xlog - TODO - [ ] 墨滴 - TODO - [ ] Flowus 息流 - TODO +- [X] telegra.ph ## 核心特色 From 128a07b46b87e617409c8150e4fa8eb716f359ab Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 4 Mar 2024 17:30:53 +0800 Subject: [PATCH 4/8] =?UTF-8?q?feat:=20=E6=B7=B1=E5=BA=A6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=8C=82=E4=BB=B6=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + README_zh_CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 267badf0..e47a68ce 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ If you're interested in the paid professional version, please check the paied - Incorporation of development documentation alongside a preview of forthcoming version agendas - Enhanced Plugin Store experience - Streamlined import processes, now accommodating customized imports + - Exquisitely refined iteration of `sy-post-publisher widget - Furthermore, post the `1.14.0` version, the author discretely developed an import function. Users can swiftly import built-in platforms through `Settings` -> `Publish Settings` -> `Import Predefined Platforms` feature 😄 diff --git a/README_zh_CN.md b/README_zh_CN.md index 8c17bd4f..91ca56d0 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -26,6 +26,7 @@ - 新增开发文档,新增下版本开发计划预告 - 优化插件商店体验new - 优化导入体验,现在支持自定义导入了实验性 + - 深度优化挂件版本 - 咳咳,另外,在 `1.14.0` 版本之后,作者还悄悄开发了导入功能。您可以使用 `设置` -> `发布设置` -> `导入预定义平台` 功能快速导入内置平台 😄 > [猛击这里](https://blog.terwer.space/s/20230810132040-nn4q7vs),查看最新帮助文档。 From 7f1622fae323a4fd83a411643bee84206f8f0d59 Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 4 Mar 2024 17:35:55 +0800 Subject: [PATCH 5/8] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=20element-plus=20=E4=BA=A7=E7=94=9F=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20label=20act=20as=20value=20is=20about=20to=20be=20deprecated?= =?UTF-8?q?=20in=20version=203.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/publish/BatchPublishIndex.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/publish/BatchPublishIndex.vue b/src/components/publish/BatchPublishIndex.vue index fd7f978e..2c0ebbd6 100644 --- a/src/components/publish/BatchPublishIndex.vue +++ b/src/components/publish/BatchPublishIndex.vue @@ -438,8 +438,8 @@ onMounted(async () => {
- 覆盖 - 合并 + 覆盖 + 合并 From 9db4805acd0ab760298f2e9a882daecb4e07db0e Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 4 Mar 2024 17:39:38 +0800 Subject: [PATCH 6/8] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=20element-plus=20=E4=BA=A7=E7=94=9F=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20label=20act=20as=20value=20is=20about=20to=20be=20deprecated?= =?UTF-8?q?=20in=20version=203.0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/publish/BatchPublishIndex.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/publish/BatchPublishIndex.vue b/src/components/publish/BatchPublishIndex.vue index 2c0ebbd6..2376ea51 100644 --- a/src/components/publish/BatchPublishIndex.vue +++ b/src/components/publish/BatchPublishIndex.vue @@ -81,8 +81,8 @@ const formData = reactive({ // process showProcessResult: false, errCount: 0, - successBatchResults: [], - failBatchResults: [], + successBatchResults: [] as any[], + failBatchResults: [] as any[], // 单个平台信息 siyuanPost: {} as Post, @@ -556,6 +556,7 @@ onMounted(async () => { .batch-result margin 16px 0 font-size 14px + .platform color var(--el-color-info) @@ -570,6 +571,7 @@ onMounted(async () => { .success-tips color var(--el-color-success) + .fail-tips color var(--el-color-error) @@ -579,10 +581,13 @@ onMounted(async () => { .distri-type :deep(.el-form-item) margin-bottom -16px + .distri-type-check margin-top -3px + .distri-tip margin-top 10px + .distri-tip-alert margin 10px 0 padding: 2px 0 From 01e41acee8c879173cdabb52c54af3907a2bcf1f Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 4 Mar 2024 17:44:06 +0800 Subject: [PATCH 7/8] =?UTF-8?q?feat:=20#958=20#1009=20=E5=85=A8=E9=9D=A2?= =?UTF-8?q?=E9=80=82=E9=85=8D=20docker=EF=BC=88=E5=AE=9E=E9=AA=8C=E6=80=A7?= =?UTF-8?q?=EF=BC=89-=20=E5=85=BC=E5=AE=B9=20telegra.ph?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ README_zh_CN.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index e47a68ce..29ca9714 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ If you're interested in the paid professional version, please check the paied - The prominent features integrated into `1.20.0` encompass: - #958 #1009 Experimental support for the docker edition of siyuan-note, marking a preliminary step towards its implementation. Should anomalies surface during deployment, the extension welcomes the addition of GitHub issues for resolution. + - Progress in Docker compatibility: + - [X] telegra.ph - #1053 Introduction of the publishing platform telegra.ph - **Please note: Unavailability of CORS proxy configuration will render the functionality inactive!!! Furthermore, accessing article previews mandates circumventing restrictions via appropriate means.** - For discussions on CORS proxy complications or other inquiries, feel free to engage in group discussions or reach out to the author at youweics@163.com diff --git a/README_zh_CN.md b/README_zh_CN.md index 91ca56d0..487bbcb2 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -14,6 +14,8 @@ - `1.20.0` 主要新增以下特性: - #958 #1009 支持 docker 版本的思源笔记实验性 - 此版本初步支持了 docker 版本的思源笔记,如果某些情况下发布异常,欢迎GitHub 新增 issue 反馈。 + - docker 版本适配进度 + - [X] telegra.ph - #1053 新增发布平台 telegra.ph - **注意:如果未配置 CORS 代理,功能将不可用!!!,而且文章预览需要科学上网,请自行解决科学上网的问题。** - CORS 代理问题可加群讨论或者私聊作者 youweics@163.com From 931bbe9630a3fd7ba8993053fb9cc03a34372b73 Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 4 Mar 2024 17:54:29 +0800 Subject: [PATCH 8/8] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9C=AA=E8=83=BD?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=E6=89=93=E5=8C=85=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-please.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 3e0eb195..b7661ac1 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -11,6 +11,7 @@ jobs: # Create release - name: Create release uses: google-github-actions/release-please-action@v4 + id: release with: # this assumes that you have created a personal access token # (PAT) and configured it as a GitHub action secret named @@ -23,68 +24,68 @@ jobs: # Checkout - name: Checkout - if: ${{ steps.release.outputs.release_created }} uses: actions/checkout@v3 + if: ${{ steps.release.outputs.release_created }} # Install Node.js - name: Install Node.js - if: ${{ steps.release.outputs.release_created }} uses: actions/setup-node@v4 with: node-version: 18 registry-url: 'https://registry.npmjs.org' + if: ${{ steps.release.outputs.release_created }} # Install pnpm - name: Install pnpm - if: ${{ steps.release.outputs.release_created }} uses: pnpm/action-setup@v3 id: pnpm-install with: version: 8 run_install: false + if: ${{ steps.release.outputs.release_created }} # Get pnpm store directory - name: Get pnpm store directory - if: ${{ steps.release.outputs.release_created }} id: pnpm-cache shell: bash run: | echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + if: ${{ steps.release.outputs.release_created }} # Setup pnpm cache - name: Setup pnpm cache - if: ${{ steps.release.outputs.release_created }} uses: actions/cache@v4 with: path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- + if: ${{ steps.release.outputs.release_created }} # Install dependencies - name: Install dependencies - if: ${{ steps.release.outputs.release_created }} run: pnpm install + if: ${{ steps.release.outputs.release_created }} # Prepare new version # https://github.com/google-github-actions/release-please-action#outputs - name: Prepare new version - if: ${{ steps.release.outputs.release_created }} run: | pnpm prepareRelease + if: ${{ steps.release.outputs.release_created }} # Build for production and Archive package - name: Build for production - if: ${{ steps.release.outputs.release_created }} run: pnpm package + if: ${{ steps.release.outputs.release_created }} # Upload package to release # https://github.com/philips-labs/terraform-aws-github-runner/blob/main/.github/workflows/release.yml#L46 - name: Upload package.zip to the release - if: ${{ steps.release.outputs.releases_created }} env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} run: | for f in $(find ./build -name '*.zip'); do gh release upload ${{ steps.release.outputs.tag_name }} $f - done \ No newline at end of file + done + if: ${{ steps.release.outputs.releases_created }} \ No newline at end of file