Skip to content

halo-sigs/plugin-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

130075b · Aug 12, 2024

History

58 Commits
Jun 14, 2024
Aug 12, 2024
Jun 28, 2024
Apr 3, 2023
Jul 3, 2024
Jan 8, 2024
Oct 17, 2022
Oct 17, 2022
Jun 28, 2024
Jul 3, 2024
Apr 21, 2023
Oct 17, 2022
Oct 17, 2022
Aug 23, 2023

Repository files navigation

plugin-migrate

支持从其他平台迁移数据到 Halo 的插件。

Screenshot

目前已支持以下平台:

  1. Halo 1.5 / 1.6
  2. WordPress
  3. RSS / Atom 订阅链接
  4. Hugo
  5. Ghost

使用方式

  1. 下载,目前提供以下两个下载方式:
  2. 安装,插件安装和更新方式可参考:https://docs.halo.run/user-guide/plugins
  3. 启动插件之后,即可在 Console 的左侧菜单栏看到 迁移 的菜单。

Warning 详细的迁移文档请查阅 https://halo-plugin-migrate.pages.dev

开发环境

插件开发的详细文档请查阅:https://docs.halo.run/developer-guide/plugin/introduction

所需环境:

  1. Java 17
  2. Node 18
  3. pnpm 8
  4. Docker (可选)

克隆项目:

git clone [email protected]:halo-sigs/plugin-migrate.git

# 或者当你 fork 之后

git clone [email protected]:{your_github_id}/plugin-migrate.git
cd path/to/plugin-migrate

运行方式 1(推荐)

此方式需要本地安装 Docker

# macOS / Linux
./gradlew pnpmInstall

# Windows
./gradlew.bat pnpmInstall
# macOS / Linux
./gradlew haloServer

# Windows
./gradlew.bat haloServer

执行此命令后,会自动创建一个 Halo 的 Docker 容器并加载当前的插件,更多文档可查阅:https://docs.halo.run/developer-guide/plugin/basics/devtools

运行方式 2

此方式需要使用源码运行 Halo

编译插件:

# macOS / Linux
./gradlew build

# Windows
./gradlew.bat build

修改 Halo 配置文件:

halo:
  plugin:
    runtime-mode: development
    fixedPluginPath:
      - "/path/to/plugin-migrate"

最后重启 Halo 项目即可。