generated from halo-dev/plugin-starter
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 修改文档标题 2. 移除首页,直接显示文档 3. 支持图片放大 4. 升级 vitepress ```release-note None ```
- Loading branch information
Showing
9 changed files
with
201 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
p > img { | ||
border-radius: 0.4rem; | ||
box-shadow: 2px 2px 0.4rem 2px rgba(0, 0, 0, 0.3); | ||
overflow: hidden; | ||
} | ||
|
||
.medium-zoom-overlay { | ||
z-index: 20; | ||
} | ||
|
||
.medium-zoom-image { | ||
z-index: 21; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import DefaultTheme from "vitepress/theme"; | ||
import { onMounted, watch, nextTick } from "vue"; | ||
import "./custom.css"; | ||
import mediumZoom from "medium-zoom"; | ||
import { useRoute } from "vitepress/client"; | ||
|
||
export default { | ||
...DefaultTheme, | ||
|
||
setup() { | ||
const route = useRoute(); | ||
const initZoom = () => { | ||
mediumZoom("[data-zoomable]", { background: "var(--vp-c-bg)" }); | ||
}; | ||
onMounted(() => { | ||
initZoom(); | ||
}); | ||
watch( | ||
() => route.path, | ||
() => nextTick(() => initZoom()) | ||
); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,60 @@ | ||
--- | ||
# https://vitepress.dev/reference/default-theme-home-page | ||
layout: home | ||
|
||
hero: | ||
name: "迁移插件使用文档" | ||
tagline: "Halo 官方迁移插件,支持从 Halo 1.x, WordPress, RSS 等多种导入数据至 Halo 中。" | ||
actions: | ||
- theme: brand | ||
text: 快速开始 | ||
link: /provider/halo | ||
- theme: alt | ||
text: 在 Github 上查看 | ||
link: https://github.com/halo-sigs/plugin-migrate | ||
--- | ||
|
||
<script setup> | ||
import { VPTeamMembers } from 'vitepress/theme' | ||
|
||
const members = [ | ||
{ | ||
avatar: 'https://www.github.com/ruibaby.png', | ||
name: 'Ryan Wang', | ||
title: 'Creator', | ||
org: 'Halo-dev', | ||
orgLink: 'https://github.com/halo-dev', | ||
links: [ | ||
{ icon: 'github', link: 'https://github.com/ruibaby' }, | ||
] | ||
}, | ||
{ | ||
avatar: 'https://www.github.com/lilgg.png', | ||
name: 'Takagi', | ||
title: 'Developer', | ||
org: 'Halo-dev', | ||
orgLink: 'https://github.com/halo-dev', | ||
links: [ | ||
{ icon: 'github', link: 'https://github.com/lilgg' }, | ||
] | ||
}, | ||
{ | ||
avatar: 'https://www.github.com/guqing.png', | ||
name: 'guqing', | ||
title: 'Developer', | ||
org: 'Halo-dev', | ||
orgLink: 'https://github.com/halo-dev', | ||
links: [ | ||
{ icon: 'github', link: 'https://github.com/guqing' }, | ||
] | ||
}, | ||
] | ||
</script> | ||
|
||
<VPTeamMembers size="small" :members="members" /> | ||
|
||
<style> | ||
:root { | ||
--vp-home-hero-name-color: transparent; | ||
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe, #41d1ff); | ||
} | ||
</style> | ||
# plugin-migrate | ||
|
||
支持多种平台的数据迁移,目前已支持: | ||
|
||
1. Halo 1.5 / 1.6 | ||
2. WordPress | ||
3. RSS / Atom 订阅链接 | ||
|
||
## 使用方式 | ||
|
||
1. 下载,目前提供以下两个下载方式: | ||
- GitHub Releases:访问 [Releases](https://github.com/halo-sigs/plugin-migrate/releases) 下载 Assets 中的 JAR 文件。 | ||
- Halo 应用市场:<https://halo.run/store/apps/app-TlUBt> | ||
2. 安装,插件安装和更新方式可参考:<https://docs.halo.run/user-guide/plugins> | ||
3. 启动插件之后,即可在 Console 的左侧菜单栏看到**迁移**的菜单。 | ||
|
||
## 开发环境 | ||
|
||
```bash | ||
git clone [email protected]:halo-sigs/plugin-migrate.git | ||
|
||
# 或者当你 fork 之后 | ||
|
||
git clone [email protected]:{your_github_id}/plugin-migrate.git | ||
``` | ||
|
||
```bash | ||
cd path/to/plugin-migrate | ||
``` | ||
|
||
```bash | ||
# macOS / Linux | ||
./gradlew pnpmInstall | ||
|
||
# Windows | ||
./gradlew.bat pnpmInstall | ||
``` | ||
|
||
```bash | ||
# macOS / Linux | ||
./gradlew build | ||
|
||
# Windows | ||
./gradlew.bat build | ||
``` | ||
|
||
修改 Halo 配置文件: | ||
|
||
```yaml | ||
halo: | ||
plugin: | ||
runtime-mode: development | ||
classes-directories: | ||
- "build/classes" | ||
- "build/resources" | ||
lib-directories: | ||
- "libs" | ||
fixedPluginPath: | ||
- "/path/to/plugin-migrate" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
{ | ||
"scripts": { | ||
"docs:dev": "vitepress dev ", | ||
"docs:build": "vitepress build ", | ||
"docs:preview": "vitepress preview " | ||
"docs:dev": "vitepress dev", | ||
"docs:build": "vitepress build", | ||
"docs:preview": "vitepress preview" | ||
}, | ||
"dependencies": { | ||
"vitepress": "1.0.0-beta.7" | ||
"medium-zoom": "^1.0.8", | ||
"vitepress": "1.0.0-rc.10", | ||
"vue": "^3.3.4" | ||
} | ||
} |
Oops, something went wrong.