Skip to content

Commit

Permalink
Merge pull request #647 from terwer/dev
Browse files Browse the repository at this point in the history
feat: AI 功能发布
  • Loading branch information
terwer committed Aug 23, 2023
2 parents 18a4113 + dfaacbe commit 86dd8b1
Show file tree
Hide file tree
Showing 32 changed files with 1,219 additions and 279 deletions.
38 changes: 12 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,18 @@ Publish articles from siyuan-note to platforms such as Yuque, Notion, Cnblogs, W

Support features such as fast publishing, image bed management, platform expansion, smart labels, etc.

> **Front Announcement 1: The first version `1.9.0` for Publish Tools that supports release view and AI beta early adopter is released!**
>
> **Front Announcement 2: Version `1.8.0` released with full support for image upload in the Publish Tools!**
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 backup `[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.

In later releases, the release configuration will only be backward compatible to `1.6.0+`.

## Recent critical updates and bug fixes

- Support multiple publishing views, simple mode, detailed mode and source mode
- Support to modify summary, tags, classification, knowledge space
- The Hexo platform supports custom modification of YAML
- 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
- 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
- Support for publishing to Hexo
- Support for publishing to Notion
- Support for Yuque, Cnblogs, Metaweblog, Typecho, WordPress
- Support automatic generation of article aliases
- Support for changing the default knowledge base
**Front Row Announcement: the first AI-integrated version `1.10.0` of the Publish Tool is released!**

We recommend updating using the `uninstall->install` method. If there are any configuration issues, please back up `[workspace]/data/storage/syp/sy-p-plus-cfg.json`, then delete it, as this configuration file will be automatically initialized on first use.

## Recent Key Updates and Bug Fixes

- Support for manually generating titles, summaries, tags, and categories through AI.
- AI integration.
- Support for multiple publishing views: simple mode, detailed mode, and source code mode.
- Support for summaries, tags, categories, and knowledge spaces.
- Platforms that do not support image link replacement can use the platform's built-in image upload interface.
- Support for replacing image links with the Picgo plugin, if available.

## Platform List

Expand Down
26 changes: 5 additions & 21 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,18 @@

将思源笔记的文章发布到语雀、Notion、Cnblogs、WordPress、Typecho、Hexo、知乎 等平台,支持极速发布、图床管理、平台扩展、智能标签等特色功能。

> **前排公告1:发布工具首个支持发布视图以及AI公测尝鲜的版本 `1.9.0` 发布!**
>
> **前排公告2:发布工具完整支持图片上传的版本 `1.8.0` 发布!**
温馨提示:知乎使用知乎平台的图片上传,语雀、Notion、Hexo需要Picgo插件支持,Metaweblog系列平台同时支持Picgo插件和自带图片上传(安装了Picgo插件使用Picgo插件,否则使用自带)
> **前排公告:发布工具首个AI集成版本 `1.10.0` 发布!**
我们建议您使用 `卸载->安装` 方法进行更新。如果配置异常,请备份 `[workspace]/data/storage/syp/sy-p-plus-cfg.json` ,然后删除,这个配置文件会在第一次使用时自动初始化。

在更高版本中,发布配置将仅向后兼容到 `1.6.0+`

## 最近的关键更新与 Bug 修复

- 支持手动通过AI生成标题、摘要、标签、分类
- AI集成
- 支持多种发布视图,简单模式、详细模式和源码模式
- 支持修改摘要、标签、分类、知识空间
- Hexo 平台支持自定义修改 YAML
- 语雀、Notion、Hexo支持图片链接,自动上传需要Picgo插件支持
- 知乎平台支持图片自动上传
- 未安装Picgo插件时,部分平台可使用自带的图片上传,例如博客园、Typecho、WordPress
- 提供不支持图片链接替换的平台使用平台自带的图片上传接口
- 所有平台迁移到官方的正向代理,极大的提升性能
- 支持摘要、标签、分类、知识空间
- 不支持图片链接替换的平台支持使用平台自带的图片上传接口
- 支持使用Picgo插件的情况下替换图床图片链接
- 修复授权码模式发布预览失效问题
- 支持发布到知乎
- 支持发布到 Hexo
- 支持发布到 Notion
- 支持语雀、博客园、Metaweblog、Typecho、WordPress
- 支持自动生成文章别名
- 语雀支持更改默认知识库

## 平台列表

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@terwer/esbuild-config-custom": "^1.2.0",
"@terwer/eslint-config-custom": "^1.3.6",
"@types/crypto-js": "^4.1.1",
"@types/node": "^18.17.7",
"@types/node": "^18.17.8",
"@vitejs/plugin-vue": "^4.3.3",
"@vitest/coverage-v8": "^0.34.2",
"@vue/test-utils": "^2.4.1",
Expand All @@ -44,7 +44,7 @@
"typescript": "^5.1.6",
"unplugin-auto-import": "^0.16.6",
"unplugin-vue-components": "^0.25.1",
"vercel": "^32.0.0",
"vercel": "^32.0.1",
"vite": "^4.4.9",
"vite-plugin-html": "^3.2.0",
"vite-plugin-node-polyfills": "^0.11.3",
Expand Down Expand Up @@ -72,14 +72,14 @@
"vue-i18n": "^9.2.2",
"vue-router": "^4.2.4",
"xmlbuilder2": "^3.1.1",
"zhi-blog-api": "^1.33.1",
"zhi-blog-api": "^1.34.0",
"zhi-common": "^1.23.1",
"zhi-device": "^2.3.1",
"zhi-fetch-middleware": "^0.3.5",
"zhi-github-middleware": "^0.3.5",
"zhi-lib-base": "^0.4.4",
"zhi-notion-markdown": "^0.1.4",
"zhi-siyuan-api": "^2.5.2",
"zhi-siyuan-api": "^2.5.3",
"zhi-xmlrpc-middleware": "^0.5.5"
}
}
Loading

0 comments on commit 86dd8b1

Please sign in to comment.