From 5e1351408e1b63ecb2dc011ebb9b9de73f608eb0 Mon Sep 17 00:00:00 2001 From: douboer Date: Thu, 16 Oct 2025 14:06:24 +0800 Subject: [PATCH] update at 2025-10-16 14:06:24 --- README.md | 2 +- build.sh | 2 +- manifest.json | 3 ++- package.json | 8 ++++++++ src/article-render.ts | 2 +- src/assets.ts | 2 +- 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0e16cc5..89ba286 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ 为了尽可能保证插件符合官方规范,主题和代码高亮需要打开Obsidian的**设置**界面,在底部的**第三方插件**——**Note 2 Any**——**获取更多主题**手动下载。 **2)手动下载** -也可以直接在[Release](https://github.com/sunbooshi/note2any/releases)页面下载`assets.zip`文件,解压后放到`.obsidian/plugins/note2any/assets`目录下。 +也可以直接在[Release](https://biboer.cn/gitea/gavin/note2any/releases)页面下载`assets.zip`文件,解压后放到`.obsidian/plugins/note2any/assets`目录下。 ### 2.3 常见安装问题 diff --git a/build.sh b/build.sh index 1d33764..cdba2e2 100755 --- a/build.sh +++ b/build.sh @@ -22,7 +22,7 @@ else fi # 2. 目标目录 -PLUGIN_DIR=~/myweb/.obsidian/plugins/note-to-mp +PLUGIN_DIR=~/myweb/.obsidian/plugins/note2any FILES=("main.js" "styles.css" "manifest.json") # 3. 遍历文件,逐一备份并覆盖 diff --git a/manifest.json b/manifest.json index 4716f9a..15fa7f9 100644 --- a/manifest.json +++ b/manifest.json @@ -6,5 +6,6 @@ "description": "xiaohongshu/mp publisher ", "author": "Gavin chan", "authorUrl": "https://biboer.cn", - "isDesktopOnly": false + "isDesktopOnly": false, + "fundingUrl": "https://biboer.cn/gitea/gavin/note2any" } diff --git a/package.json b/package.json index cb72096..7a31db7 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,14 @@ "version": "1.3.0", "description": "This is a plugin for Obsidian (https://obsidian.md)", "main": "main.js", + "repository": { + "type": "git", + "url": "https://biboer.cn/gitea/gavin/note2any.git" + }, + "homepage": "https://biboer.cn/gitea/gavin/note2any", + "bugs": { + "url": "https://biboer.cn/gitea/gavin/note2any/issues" + }, "scripts": { "dev": "node esbuild.config.mjs", "build": "npm run build:bundle --", diff --git a/src/article-render.ts b/src/article-render.ts index 1cd8b20..a4b783a 100644 --- a/src/article-render.ts +++ b/src/article-render.ts @@ -200,7 +200,7 @@ export class ArticleRender implements MDRendererCallback { errorContent(error: any) { return '

渲染失败!


' - + '如需帮助请前往  https://github.com/sunbooshi/note2any/issues  反馈

' + + '如需帮助请前往  https://biboer.cn/gitea/gavin/note2any/issues  反馈

' + '如果方便,请提供引发错误的完整Markdown内容。

' + '
Obsidian版本:' + apiVersion + '
错误信息:
' diff --git a/src/assets.ts b/src/assets.ts index 8064b56..07373c8 100644 --- a/src/assets.ts +++ b/src/assets.ts @@ -297,7 +297,7 @@ export default class AssetsManager { getThemeURL() { const version = this.manifest.version; - return `https://github.com/sunbooshi/note2any/releases/download/${version}/assets.zip`; + return `https://biboer.cn/gitea/gavin/note2any/releases/download/${version}/assets.zip`; } async getStyle() {