From 6c9936746d4a65bf5a1ec9f2f8fba6c15a125902 Mon Sep 17 00:00:00 2001 From: terwer Date: Mon, 14 Aug 2023 21:58:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0-=E8=A7=A3=E5=86=B3Notion?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=A7=A3=E6=9E=90=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++---- README_zh_CN.md | 7 ++++++- package.json | 2 +- pnpm-lock.yaml | 8 ++++---- src/utils/constants.ts | 2 +- 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b2007dac..14198779 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,11 @@ Publish articles from Siyuan Notes to platforms such as Yuque, Notion, Cnblogs, Support features such as fast publishing, image bed management, platform expansion, smart labels, etc. -> **Front Announcement 1: Publish Tool's first platform-wide version `1.8.0` using the forward agent of Siyuan Note!** +> **Front Announcement 1: Release Tool's first platform-wide version `1.8.0` using the forward agent of Siyuan Note!** +> +> **Front Announcement 2: The first version of the release tool that fully supports image upload `1.8.0` is released!** -> **Front Announcement 2: The first version of the Publish Tool that fully supports image upload [Zhihu and Notion are adapting, Yuque and Hyo need Picgo plug-in support, and Metaweblog series platforms come with image upload] version `1.8.0` released!** +Tips: Zhihu uses the image upload of the Zhihu platform, Yuque, Notion, and Hexo need Picgo plugin support, and the Metaweblog series platform supports both Picgo plugin and self-contained image upload (install Picgo plugin to use Picgo plugin, otherwise use their own platform) We recommend that you use the `uninstall->install` method to update. If the configuration is abnormal, please back up `[workspace]/data/storage/syp/sy-p-plus-cfg.json` , and then delete it, this configuration file will be automatically initialized the first time it is used. @@ -18,10 +20,9 @@ In later releases, the release configuration will only be backward compatible to ## Recent critical updates and bug fixes +- Yuque, Notion, and Hexo support image links, and automatic upload requires Picgo plugin support - Zhihu platform supports automatic image upload - When the Picgo plugin is not installed, some platforms can use the built-in image upload, such as Cnblogs, Typecho, WordPress -- Platforms that do not support image link replacement use the platform's own image upload, such as Zhihu, Notion, adapting... -- All platforms migrated to official forward proxy - Support replacing picture bed image links with Picgo plugin - Fixed the issue that the release preview of the authorization code mode was invalidated - Support publishing to Zhihu diff --git a/README_zh_CN.md b/README_zh_CN.md index a27c74cf..45f43fd9 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -10,10 +10,15 @@ > > **前排公告2:发布工具首个完整支持图片上传的版本 `1.8.0` 发布!** -温馨提示:知乎使用知乎平台的图片上传,Notion使用Notion的图片上传(适配中),语雀、Hexo需要Picgo插件支持,Metaweblog系列平台同时支持Picgo插件和自带图片上传(安装了Picgo插件使用Picgo插件,否则使用自带) +温馨提示:知乎使用知乎平台的图片上传,语雀、Notion、Hexo需要Picgo插件支持,Metaweblog系列平台同时支持Picgo插件和自带图片上传(安装了Picgo插件使用Picgo插件,否则使用自带) + +我们建议您使用 `卸载->安装` 方法进行更新。如果配置异常,请备份 `[workspace]/data/storage/syp/sy-p-plus-cfg.json` ,然后删除,这个配置文件会在第一次使用时自动初始化。 + +在更高版本中,发布配置将仅向后兼容到 `1.6.0+` 。 ## 最近的关键更新与 Bug 修复 +- 语雀、Notion、Hexo支持图片链接,自动上传需要Picgo插件支持 - 知乎平台支持图片自动上传 - 未安装Picgo插件时,部分平台可使用自带的图片上传,例如博客园、Typecho、WordPress - 提供不支持图片链接替换的平台使用平台自带的图片上传接口 diff --git a/package.json b/package.json index 73f263be..3b72d068 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "zhi-fetch-middleware": "^0.2.21", "zhi-github-middleware": "^0.2.2", "zhi-lib-base": "^0.4.4", - "zhi-notion-markdown": "^0.1.2", + "zhi-notion-markdown": "^0.1.3", "zhi-siyuan-api": "^2.0.27", "zhi-xmlrpc-middleware": "^0.4.15" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a97a85ca..219da065 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,8 +78,8 @@ dependencies: specifier: ^0.4.4 version: 0.4.4 zhi-notion-markdown: - specifier: ^0.1.2 - version: 0.1.2 + specifier: ^0.1.3 + version: 0.1.3 zhi-siyuan-api: specifier: ^2.0.27 version: 2.0.27 @@ -7378,8 +7378,8 @@ packages: resolution: {integrity: sha512-adu1KXVDRjsE/tshAXUeRW62VkaNIb0AOcYXnjgHODsw2gJlkxbvVn2wISuboCiwKv1JsD5gbmxdzSkRyJiC5Q==} dev: false - /zhi-notion-markdown@0.1.2: - resolution: {integrity: sha512-BevOxOS4A1GZu5Xsj6q8QtMnvE/fVMPo6f5ecjzGKln5DQguhOZZJHv9CRVpq2zAqM4YJveSAnuFNofz70XWJw==} + /zhi-notion-markdown@0.1.3: + resolution: {integrity: sha512-ql5fNWFBf1gjgxaehUDxy2Yew7RejAYZxOB1vTzTtJKI0plPcU1+vDWzPFuqsYdi6Ais/wDlUGuO3NQ8SGvBEg==} dependencies: '@tryfabric/martian': 1.2.4 notion-to-md: 3.1.1 diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 91588019..d378ca53 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -39,4 +39,4 @@ export const MUST_USE_OWN_PLATFORM = ["custom_Zhihu"] /** * 必须使用图床的平台 */ -export const MUST_USE_PICBED_PLATFORM = ["common_Yuque", "common_Hexo"] +export const MUST_USE_PICBED_PLATFORM = ["common_Yuque", "common_Notion", "common_Hexo"]