Skip to content

Commit

Permalink
chore: sync repo v1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Aug 8, 2023
1 parent 48d95d1 commit 2729124
Show file tree
Hide file tree
Showing 34 changed files with 156 additions and 135 deletions.
11 changes: 7 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Changelog

## [0.10.2](https://github.com/terwer/sy-post-publisher/compare/v0.10.1...v0.10.2) (2023-08-07)
### Miscellaneous
* sync repo v1.5.0 ([c62657e](https://github.com/terwer/sy-post-publisher/commit/c62657e7614cea2ca519ea91e48c2663364a1239))
## [1.5.2](https://github.com/terwer/siyuan-plugin-publisher/compare/v1.5.1...v1.5.2) (2023-08-08)
### Bug Fixes
* 修复挂件获取文档id错误的问题 ([364f689](https://github.com/terwer/siyuan-plugin-publisher/commit/364f689359d88589a85fdaa251ac66856dfed819))
## [1.5.1](https://github.com/terwer/siyuan-plugin-publisher/compare/v1.5.0...v1.5.1) (2023-08-08)
* 优化 hexo 文章链接转换规则 ([0021c29](https://github.com/terwer/siyuan-plugin-publisher/commit/0021c29f6a020b9c55d5b0de4b1824eb8da4b079))
* 修复配置获取错误问题 ([f7dc02b](https://github.com/terwer/siyuan-plugin-publisher/commit/f7dc02bc458a6105f061a144a555690292b95636))
## [1.5.0](https://github.com/terwer/siyuan-plugin-publisher/compare/v1.4.1...v1.5.0) (2023-08-07)
### Features
* hexo 支持 yaml ([a230ff0](https://github.com/terwer/siyuan-plugin-publisher/commit/a230ff0d6979516563bc005807ea2085b3b9880c))
* 支持文章绑定 ([e3a92d0](https://github.com/terwer/siyuan-plugin-publisher/commit/e3a92d0d2d0e67d4e97cd864f5cd707c02f97610))
### Bug Fixes
* fix typo ([94f77ba](https://github.com/terwer/siyuan-plugin-publisher/commit/94f77bab0e977166370a20861e2eb6c2c65751e5))
## [1.4.1](https://github.com/terwer/siyuan-plugin-publisher/compare/v1.4.0...v1.4.1) (2023-08-07)
* 修复构建错误 ([32e8f61](https://github.com/terwer/siyuan-plugin-publisher/commit/32e8f61d193d0a979c4417653bc8b202b0be7b04))
Expand Down Expand Up @@ -64,6 +66,7 @@
* **deps:** bump zhi-xmlrpc-middleware from 0.3.0 to 0.4.0 ([1c16b2c](https://github.com/terwer/siyuan-plugin-publisher/commit/1c16b2c15ad5bccc982dfa0849be3e8a20ecd095))
* 修复第一次打开可能导致的报错问题 ([b05894e](https://github.com/terwer/siyuan-plugin-publisher/commit/b05894e8a40e58dc16583aba00cc91235181764b))
* 常规发布改为批量分发 ([dc06680](https://github.com/terwer/siyuan-plugin-publisher/commit/dc066801e84d2553b97e0a84432f22ccd2f86221))
### Miscellaneous
* **deps-dev:** bump vite from 4.4.7 to 4.4.8 ([d38a208](https://github.com/terwer/siyuan-plugin-publisher/commit/d38a208faccf2a864bd6f14b226f1bf281d63a9a))
* **deps-dev:** bump vitest from 0.33.0 to 0.34.1 ([748042f](https://github.com/terwer/siyuan-plugin-publisher/commit/748042fa3e17faf93253dcce151b3bb6fc05b3f7))
## [1.2.0](https://github.com/terwer/siyuan-plugin-publisher/compare/v1.1.2...v1.2.0) (2023-08-01)
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@ If you still can't use this step after this step, [New issue](https://github.com

## Recent critical updates and bug fixes

- Optimized HEXO article link conversion rules
- Fixed configuration fetch error
- Fixed the issue where the widget gets the document ID incorrectly
- Support article binding
- HEXO supports YAML
- Support automatic generation of article aliases
- Unified integration of platform configurations
- Complete HEXO adaptation
- Fixed the issue where regular publishing returned an exception
- Fixed the issue that typecho updates did not take effect
- Fixed the batch distribution error issue
- Notion and Yuque platforms use the forward agent of Siyuan Note to improve performance
- Regular publishing supports article comparison
- Added notion support
- Support for changing the default knowledge base
- Added support for general releases with fine-grained configuration
Expand Down
8 changes: 3 additions & 5 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,14 @@

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

- 优化 hexo 文章链接转换规则
- 修复配置获取错误问题
- 修复挂件获取文档id错误的问题
- 支持文章绑定
- hexo 支持 yaml
- 支持自动生成文章别名
- 统一整合各平台配置
- 完成 hexo 适配
- 修复常规发布返回异常问题
- 修复typecho更新不生效问题
- 修复批量分发报错问题
- Notion、语雀平台使用思源笔记正向代理,提升性能
- 常规发布支持文章比对
- 新增 notion 支持
- 语雀支持更改默认知识库
- 新增支持细粒度配置的常规发布
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "siyuan-plugin-publisher",
"version": "0.10.2",
"version": "1.5.2",
"description": "Publishing articles from siyuan-note to platforms such as Yuque, Cnblogs, WordPress, Typecho, Hexo, Hugo and more",
"repository": "terwer/siyuan-plugin-publisher",
"homepage": "https://github.com/terwer/siyuan-plugin-publisher",
Expand All @@ -18,6 +18,7 @@
"vercelBuild": "python3 scripts/vercel_build.py",
"nginxBuild": "python scripts/nginx_build.py",
"widgetBuild": "python scripts/widget_build.py",
"widgetTest": "python scripts/widget_build.py -t",
"extBuild": "python scripts/ext_build.py",
"syncVersion": "python scripts/version.py",
"parseChangelog": "python scripts/parse_changelog.py",
Expand Down Expand Up @@ -66,13 +67,13 @@
"vue-router": "^4.2.4",
"xmlbuilder2": "^3.1.1",
"zhi-blog-api": "^1.20.13",
"zhi-common": "^1.14.0",
"zhi-common": "^1.14.1",
"zhi-device": "^2.3.0",
"zhi-fetch-middleware": "^0.2.18",
"zhi-github-middleware": "^0.2.0",
"zhi-fetch-middleware": "^0.2.19",
"zhi-github-middleware": "^0.2.1",
"zhi-lib-base": "^0.4.4",
"zhi-notion-markdown": "^0.1.2",
"zhi-siyuan-api": "^2.0.14",
"zhi-xmlrpc-middleware": "^0.4.13"
"zhi-siyuan-api": "^2.0.15",
"zhi-xmlrpc-middleware": "^0.4.14"
}
}
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "siyuan-plugin-publisher",
"author": "terwer",
"url": "https://github.com/terwer/siyuan-plugin-publisher",
"version": "0.10.2",
"version": "1.5.2",
"minAppVersion": "2.9.0",
"backends": [
"windows",
Expand Down
97 changes: 44 additions & 53 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/adaptors/api/base/CommonblogConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ export class CommonblogConfig extends BlogConfig {
*/
public usernameEnabled = false

/**
* 是否启用用户名
*/
public allowPreviewUrlChange = true

/**
* 是否展示Token设置地址
*/
Expand All @@ -145,5 +150,6 @@ export class CommonblogConfig extends BlogConfig {
this.placeholder = new MetaweblogPlaceholder()
this.middlewareUrl = middlewareUrl
this.usernameEnabled = false
this.allowPreviewUrlChange = true
}
}
3 changes: 2 additions & 1 deletion src/adaptors/api/base/metaweblog/MetaweblogConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ export class MetaweblogConfig extends CommonblogConfig {
this.posidKey = ""
this.previewUrl = ""
this.pageType = PageTypeEnum.Html
this.middlewareUrl = middlewareUrl
this.placeholder = new MetaweblogPlaceholder()
this.usernameEnabled = true
this.showTokenTip = false
this.middlewareUrl = middlewareUrl
this.allowPreviewUrlChange = true
}
}
1 change: 1 addition & 0 deletions src/adaptors/api/cnblogs/cnblogsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class CnblogsConfig extends MetaweblogConfig {
this.usernameEnabled = true
this.passwordType = PasswordType.PasswordType_Token
this.showTokenTip = true
this.allowPreviewUrlChange = true
}
}

Expand Down
Loading

0 comments on commit 2729124

Please sign in to comment.