Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望增加halo 2.0 备份/导出/导入 markdown文章的插件 #3632

Closed
cyolc932 opened this issue Mar 29, 2023 · 31 comments
Closed

希望增加halo 2.0 备份/导出/导入 markdown文章的插件 #3632

cyolc932 opened this issue Mar 29, 2023 · 31 comments
Labels
area/console Issues or PRs related to the Halo Console area/core Issues or PRs related to the Halo Core kind/feature Categorizes issue or PR as related to a new feature.

Comments

@cyolc932
Copy link

cyolc932 commented Mar 29, 2023

描述一下此特性

希望增加halo 2.0 备份/导出/导入markdown文章的插件
从静态架构框架来的用户很需要这功能

@JohnNiang
Copy link
Member

/kind feature
/area core
/area console

@f2c-ci-robot f2c-ci-robot bot added kind/feature Categorizes issue or PR as related to a new feature. area/core Issues or PRs related to the Halo Core area/console Issues or PRs related to the Halo Console labels Mar 29, 2023
@HappySnoopy
Copy link

同需要。正在搞h2迁移到MySQL的事儿,2.3.0版本halo,没法导出/导入文章,搞得很头疼。总不能真就从h2导出SQL文件再导入MySQL吧……

@JohnNiang
Copy link
Member

/milestone 2.5.x

@f2c-ci-robot f2c-ci-robot bot added this to the 2.5.x milestone Apr 6, 2023
@Daixingdeng
Copy link

同需! 目前本地md无法迁移。 并且也需要halo的文章导出md,备份到代码库中。

@zzhao8053
Copy link

同需!

@shisuiyi
Copy link

同需

@ruibaby ruibaby modified the milestones: 2.5.x, Backlog Apr 23, 2023
@itscolor
Copy link

是的呢,很需要,不想每次都敲代码备份。

@JohnNiang
Copy link
Member

Hi @cyolc932 ,可以说一下关闭当前 Issue 的原因么?

社区成员都期望支持“备份/导出/导入”的功能,建议重新打开,等待社区一起解决这个问题。

@cyolc932
Copy link
Author

Hi @cyolc932 ,可以说一下关闭当前 Issue 的原因么?

社区成员都期望支持“备份/导出/导入”的功能,建议重新打开,等待社区一起解决这个问题。

我的时间有限 换架构了

@JohnNiang
Copy link
Member

理解。

我将重新打开当前 Issue,这个功能的呼声比较高。

/reopen

@f2c-ci-robot f2c-ci-robot bot reopened this Apr 27, 2023
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Apr 27, 2023

@JohnNiang: Reopened this issue.

In response to this:

理解。

我将重新打开当前 Issue,这个功能的呼声比较高。

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@Crany-web
Copy link

同需+1,做的笔记比较多不出这个功能或者插件想要全部搬到halo比较麻烦

@KitStarLee
Copy link

同需

@ruibaby
Copy link
Member

ruibaby commented Jun 2, 2023

实现一个这样的插件,具体可能需要解决的问题:

  1. Frontmatter 解析,因为目前多数静态生成器的 Markdown 引擎的 Frontmatter 规则可能都不尽相同,可能需要支持让使用者配置。
  2. Markdown 解析引擎,如何保证尽可能的兼容各个 Markdown 方言,还是提供可选项。
  3. 使用场景考虑,需要考虑 仅仅是迁移 还是 在本地写完之后导入到 Halo,如果是后者,是否需要考虑更新的问题?
  4. 导出功能:是否需要携带 Frontmatter,如何兼容各个平台,或者说是否要兼容。
  5. 导出功能:是否需要支持默认富文本编辑器导出 Markdown,如何保证格式问题。

综上,我感觉更多的还是使用场景的问题,希望大家可以提出自己具体需要如何使用。等使用场景收集的差不多之后,我会考虑来开发这个插件。

@KitStarLee
Copy link

@ruibaby 感谢回复,我和@Crany-web 同样的需求,差不多都是 本地电脑有很多Markdown笔记文档,且比较多(一万左右),想要批量上传到Halo文章中,减少工作量,不然 1万的得好多好多天

@KitStarLee
Copy link

我的区别可能是 那些 Markdown笔记文档是我用程序解析其他文档进行转化的。所以理论是只有平台支持批量上传,无论格式是什么,都能满足我的需求。(我生成平台支持的格式即可)

@ColanCN
Copy link

ColanCN commented Jun 10, 2023

如果能有完整导出博客备份就好了

@redquilt
Copy link

+1

@JohnNiang
Copy link
Member

/milestone 2.7.x
/assign

我将尝试完成“备份”、“导出”和“导入”。

@f2c-ci-robot f2c-ci-robot bot modified the milestones: Backlog, 2.7.x Jun 12, 2023
@Daixingdeng
Copy link

1.md导入或者pdf导入(倾向这个,关于图片视频类的halo能处理就nice了)
2.导出md备份(以目录结构布局,方便搭建静态博客上传到代码仓库备份存档,能够实现博客更代码仓库内容实时或者定时同步就nice了)
3.要是再支持从csdn或者开源中国博客社区里面的文章迁移就更好了

@JohnNiang
Copy link
Member

Hi @Daixingdeng ,短期内我将尝试实现整站的备份、导出和导入。关于 Markdown 的导入和导出暂时不在计划呢,如果谁有兴趣,非常欢迎开发对应的插件来完成定制化的功能。

@Daixingdeng
Copy link

@JohnNiang 我有兴趣参与,但我不知道如何参与进来。针对这方面我需要做哪些准备工作,包括 1: md pdf这些场景的难点 2: 如何贡献代码,有什么约束。有相关资料可以推荐一下吗

@JohnNiang
Copy link
Member

JohnNiang commented Jun 13, 2023

@JohnNiang 我有兴趣参与,但我不知道如何参与进来。针对这方面我需要做哪些准备工作,包括 1: md pdf这些场景的难点 2: 如何贡献代码,有什么约束。有相关资料可以推荐一下吗

非常欢迎!关于如何贡献代码建议参考 https://docs.halo.run/contribution/pr。在开发 Halo 之前也建议参考一下:https://docs.halo.run/category/%E5%BC%80%E5%8F%91%E8%80%85%E6%8C%87%E5%8D%97

在动手开发之前,建议现在 Issue 中详细描述你的方案,大家一起 Review 后可进行下一步。

@JohnNiang
Copy link
Member

关于备份和恢复功能的 Proposal 请参考:https://github.com/JohnNiang/halo/blob/9921deb0768cb22fb4ba738e20fdc099f1678926/docs/backup-and-restore.md

Workaround 请参考:#4206

@pandalabme
Copy link

期待

@ougato
Copy link

ougato commented Sep 19, 2023

同需

@JohnNiang
Copy link
Member

在 Halo 2.8 中,已经实现了备份和恢复功能。具体请参考:#4206

导入/导出 markdown 文章的需求暂时不考虑。理由如下:

当前 Issue 即将被关闭。如果有任何问题请随时重新打开。

/close

@f2c-ci-robot f2c-ci-robot bot closed this as completed Oct 12, 2023
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Oct 12, 2023

@JohnNiang: Closing this issue.

In response to this:

在 Halo 2.8 中,已经实现了备份和恢复功能。具体请参考:#4206

导入/导出 markdown 文章的需求暂时不考虑。理由如下:

当前 Issue 即将被关闭。如果有任何问题请随时重新打开。

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@JohnNiang JohnNiang removed their assignment Oct 12, 2023
@ruibaby ruibaby removed this from the Backlog milestone Oct 30, 2023
@Emisaka123
Copy link

迫切需要

@ColanCN
Copy link

ColanCN commented Nov 6, 2023

如果能有完整导出博客备份就好了

这个功能貌似已进做到了,好评!

@o85757o
Copy link

o85757o commented Nov 19, 2023

希望大佬关注到这个需求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/console Issues or PRs related to the Halo Console area/core Issues or PRs related to the Halo Core kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests